/* ==========================================================================
   Blog posts with the Figma hero on top ("Virtual phone number for X" series):
   /blog/virtual-phone-number-for-apple-id (+ /es /fr /pt), -for-llc, -for-usa,
   -for-whatsapp-business.

   Only the HERO is custom: the Figma "Virtual number for Apple ID" hero
   (page 1697:61, frame 1698:1286), built like the homepage hero (hp-ix-*).
   Each post swaps in its own photo (images/apple-id/, images/blog/*-hero).
   Everything below the hero is the standard blog template.

   Self-contained on purpose: homepage.css is NOT loaded on blog posts because
   it also restyles the shared footer download block. Every rule is scoped
   under .bh-hero (or .bh-compare) so nothing leaks into the template.
   ========================================================================== */

.bh-hero {
  --bh-accent: #7045f0;
  --bh-stroke: #b7b7b7;
  padding: 130px 0 24px;
  font-family: Montserrat, 'Montserrat Fallback', sans-serif;
  color: #000;
}
.bh-hero .hp-container {
  width: 100%;
  max-width: 1144px;
  margin: 0 auto;
  padding-left: 24px;
  padding-right: 24px;
}

/* Photo panel with the title overlaid on the sky ------------------------- */
.bh-hero .hp-ix-hero-media { position: relative; }
.bh-hero .hp-ix-hero-img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1209 / 456;
  object-fit: cover;
  object-position: center;
  border-radius: 40px;
  border: 0.5px solid var(--bh-stroke);
  background: var(--bh-sky, #bbdcf5); /* the photo's background colour, shown while it loads */
}
.bh-hero .hp-ix-hero-title {
  position: absolute;
  left: 4%;
  top: 14%;
  max-width: 46%;
  margin: 0;
  font-family: inherit;
  font-size: 62px;
  font-weight: 700;
  line-height: 68px;
  letter-spacing: -0.04em;
  color: #000;
}

/* The French and Spanish titles are longer: at 62px French wraps to a 4th line
   under the price card and Spanish runs into the sign-in popup in the photo. */
@media screen and (min-width: 1144px) {
  html[lang="fr"] .bh-hero .hp-ix-hero-title,
  html[lang="es"] .bh-hero .hp-ix-hero-title { font-size: 58px; line-height: 64px; }
}

/* Bottom row: glass price card (overlapping the photo) + intro ----------- */
.bh-hero .hp-ix-hero-bottom {
  display: grid;
  grid-template-columns: 448px 1fr;
  gap: 20px;
  align-items: start;
}
.bh-hero .hp-ix-hero-card {
  position: relative;
  z-index: 2;
  margin-top: -120px; /* Figma: the card covers the bottom ~29% of the photo */
  margin-left: 26px;
  padding: 20px 24px 16px;
  background: rgba(255, 255, 255, 0.7);
  border: 0.5px solid rgba(0, 0, 0, 0.1);
  border-radius: 41px;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.bh-hero .hp-ix-hero-card-title {
  margin: 0 0 20px;
  font-size: 26px;
  font-weight: 700;
  line-height: 40px;
  letter-spacing: -0.04em;
  color: #000;
  text-align: center;
}
.bh-hero .hp-ix-price-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  width: 100%;
}
.bh-hero .hp-ix-price-card {
  display: flex;
  flex-direction: column;
  padding: 24px 22px 20px;
  border-radius: 23px;
  text-decoration: none;
  color: #000;
  background: #fff;
  border: 2px solid rgba(0, 0, 0, 0.2);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bh-hero .hp-ix-price-card:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); }
.bh-hero .hp-ix-price-card.is-primary {
  background: var(--bh-accent);
  border-color: var(--bh-accent);
  color: #fff;
}
.bh-hero .hp-ix-price-action {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.15;
}
.bh-hero .hp-ix-price-sub {
  margin-top: 4px;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: -0.04em;
  line-height: 19px;
  max-width: 150px;
}
.bh-hero .hp-ix-price-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  margin-top: 8px;
}
.bh-hero .hp-ix-price-plan {
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.04em;
  opacity: 0.7;
  text-align: right;
}
.bh-hero .hp-ix-price-amount {
  font-size: 34px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  white-space: nowrap;
}
.bh-hero .hp-ix-price-amount sup {
  font-size: 14px;
  font-weight: 700;
  vertical-align: super;
}
.bh-hero .hp-ix-price-note {
  width: 100%;
  margin: 6px 0 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 16px;
  letter-spacing: -0.04em;
  text-align: right;
  color: #242424;
  opacity: 0.7;
}

/* Intro column: blog label + byline, then the intro paragraph */
.bh-hero .hp-ix-hero-copy {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 18px;
  padding-left: 24px;
}
.bh-hero .bh-hero-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
}
.bh-hero .bh-hero-meta .data { margin-bottom: 0; }
.bh-hero .bh-hero-meta .article-byline { margin: 0; }
.bh-hero .bh-hero-meta .article-byline span { white-space: nowrap; } /* keep "7 min read" / the date on one line */
.bh-hero .hp-ix-hero-copy p {
  max-width: 644px;
  margin: 0;
  font-size: 17px;
  font-weight: 400;
  line-height: 26px;
  letter-spacing: -0.02em;
  color: #000;
}

/* The blog body follows straight after the hero */
.section-70.pd-140px.b-content.bh-blog-body { padding-top: 40px; }

/* Tablet -------------------------------------------------------------------- */
@media screen and (max-width: 1143px) {
  .bh-hero .hp-ix-hero-title { font-size: 50px; line-height: 56px; }
  .bh-hero .hp-ix-hero-card { margin-top: -104px; }
}
@media screen and (max-width: 991px) {
  .bh-hero { padding-top: 110px; }
  .bh-hero .hp-ix-hero-title { top: 9%; font-size: 40px; line-height: 44px; }
  .bh-hero .hp-ix-hero-bottom { grid-template-columns: 1fr; gap: 24px; }
  .bh-hero .hp-ix-hero-card { margin-left: 0; margin-top: -80px; max-width: 486px; width: 100%; justify-self: center; }
  .bh-hero .hp-ix-hero-copy { padding: 0; align-items: center; text-align: center; }
  .bh-hero .bh-hero-meta { justify-content: center; }
  .bh-hero .bh-hero-meta .article-byline { text-align: center; }
  .bh-hero .hp-ix-hero-copy p { max-width: 620px; }
}

/* Phone: the title leaves the photo and sits above it as a normal heading;
   the photo is cropped on the sign-in popup + code notification. ---------- */
@media screen and (max-width: 767px) {
  .bh-hero { padding-top: 100px; }
  .bh-hero .hp-container { padding-left: 16px; padding-right: 16px; }
  .bh-hero .hp-ix-hero-media { display: flex; flex-direction: column; }
  .bh-hero .hp-ix-hero-title {
    order: -1;
    position: static;
    max-width: none;
    margin: 0 0 18px;
    font-size: 36px;
    line-height: 42px;
  }
  .bh-hero .hp-ix-hero-title br { display: none; }
  .bh-hero .hp-ix-hero-img {
    aspect-ratio: 6 / 5;
    object-position: 86% center;
    border-radius: 30px;
  }
  /* Solid white card below the photo: no overlap, no glass */
  .bh-hero .hp-ix-hero-card {
    margin-top: 22px;
    padding: 20px 21px 18px;
    background: #fff;
    border: 0;
    border-radius: 40px;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
  }
  .bh-hero .hp-ix-hero-card-title { font-size: 24px; line-height: 33px; }
  .bh-hero .hp-ix-hero-copy p { font-size: 16px; line-height: 24px; }
}
@media screen and (max-width: 479px) {
  .bh-hero .hp-ix-hero-title { font-size: 32px; line-height: 38px; }
  .bh-hero .hp-ix-price-cards { grid-template-columns: 1fr; }
  .bh-hero .hp-ix-price-card { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; align-items: center; padding: 22px; min-height: 110px; }
  .bh-hero .hp-ix-price-card .hp-ix-price-action { grid-column: 1; grid-row: 1; font-size: 26px; }
  .bh-hero .hp-ix-price-card .hp-ix-price-sub { grid-column: 1; grid-row: 2; margin-top: 4px; max-width: 160px; font-size: 18px; }
  .bh-hero .hp-ix-price-card .hp-ix-price-row { grid-column: 2; grid-row: 1 / 3; margin-top: 0; align-items: center; }
  .bh-hero .hp-ix-price-card .hp-ix-price-amount { font-size: 36px; }
}

/* --------------------------------------------------------------------------
   SPLIT variant: LLC / USA / WhatsApp Business (Figma 1717:281, 1717:421,
   1717:555). Two-line title vertically centred on the left of a flat-colour
   photo; on phones the title sits on a light band over the top of a
   separate phone-sized image (<picture> source *-hero-m.webp).
   Each post sets its photo colour with style="--bh-sky:#xxxxxx".
   -------------------------------------------------------------------------- */
.bh-hero.bh-hero--split .hp-ix-hero-img { aspect-ratio: 1204 / 445; }
.bh-hero.bh-hero--split .hp-ix-hero-title {
  top: 44%;
  transform: translateY(-50%);
  max-width: none;
  white-space: nowrap; /* the <br> sets the two Figma lines */
}
@media screen and (max-width: 767px) {
  .bh-hero.bh-hero--split .hp-ix-hero-media { display: block; }
  .bh-hero.bh-hero--split .hp-ix-hero-img {
    aspect-ratio: 522 / 549;
    object-position: center;
    border-radius: 30px;
  }
  /* Figma "iPhone 16 - 1": title on a #f3f3f3 band flush to the photo's left edge */
  .bh-hero.bh-hero--split .hp-ix-hero-title {
    position: absolute;
    top: 11%;
    left: 0;
    transform: none;
    max-width: 92%;
    white-space: normal;
    margin: 0;
    padding: 6px 26px 6px 21px;
    background: #f3f3f3;
    border-radius: 0 42px 42px 0;
    font-size: 28px;
    line-height: 36px;
  }
  .bh-hero.bh-hero--split .hp-ix-hero-title br { display: inline; }
  /* Figma mobile (updated 2026-11-30): photo -> intro -> price card, 19px apart */
  .bh-hero.bh-hero--split .hp-ix-hero-bottom {
    display: flex;
    flex-direction: column;
    gap: 19px;
    margin-top: 19px;
  }
  .bh-hero.bh-hero--split .hp-ix-hero-copy { order: -1; }
  .bh-hero.bh-hero--split .hp-ix-hero-copy p { line-height: 25px; }
  .bh-hero.bh-hero--split .hp-ix-hero-card { margin-top: 0; }
  /* "$4.99" at full size, not a raised ".99" */
  .bh-hero.bh-hero--split .hp-ix-price-amount { font-size: 30px; }
  .bh-hero.bh-hero--split .hp-ix-price-amount sup { position: static; top: auto; font-size: inherit; vertical-align: baseline; }
}
/* "WhatsApp Business" is a long line: Figma draws it smaller (~54px at this
   width) so it stops before the phone. */
@media screen and (min-width: 1144px) {
  .bh-hero.bh-hero--split.bh-hero--long .hp-ix-hero-title { font-size: 56px; line-height: 62px; }
}
@media screen and (min-width: 768px) and (max-width: 991px) {
  .bh-hero.bh-hero--split.bh-hero--long .hp-ix-hero-title { font-size: 36px; line-height: 40px; }
}

/* --------------------------------------------------------------------------
   Post-specific comparison tables (section 6). Same look as the shared
   .comparison-table, plus a highlighted SLYNUMBER column and wrapping
   headers so 6 columns stay readable. The wrapper must NOT use the exact
   class string "mg-top-32px comparison-table-wrap": BlogPage.ejs replaces
   that div with the shared table.
   -------------------------------------------------------------------------- */
.comparison-table.bh-compare { min-width: 720px; }
.comparison-table.bh-compare thead th,
.comparison-table.bh-compare tbody th { white-space: normal; vertical-align: top; }
.comparison-table.bh-compare td { vertical-align: top; }
.comparison-table.bh-compare thead th.is-sly { background: #7045f0; border-color: #7045f0; color: #fff; }
.comparison-table.bh-compare td.is-sly { background: #f0ebff; font-weight: 600; }
.comparison-table.bh-compare caption {
  caption-side: top;
  text-align: left;
  font-weight: 700;
  padding-bottom: 8px;
}
