/* =============================================================================
   HOMEPAGE DESIGN LAYER
   The devices the /doctor homepage actually uses, lifted from index.html so
   every version in this lab speaks the homepage's language rather than an
   approximation of it. Values below are the homepage's own — the mono eyebrow
   at .24em, the 800-weight heading at -.05em with its accent full stop, the
   52ch sub, the #DEE5F1 card edge and the two-part shadow.

   Sourced from:  #svc3 .s3-head / .s3-grid   (Our Services)
                  #indwork .iw-header / .iw-card (Industries We Work)
                  #ss1 .ss-head / .ss-all      (Success Stories)
                  #wcu8 .wt-head / .wt-cnt     (Why Choose Us)
                  #faq10 .faq-split            (FAQ)
   Layout stays in vNN.css. Nothing here is version-specific.
   ============================================================================= */

.pg{
  --mist:   #F6F8FC;
  --pale:   #F7F9FD;
  --tint:   #EEF4FE;
  --tint-2: #F5F9FF;
  --edge:   #CFE0FD;
  --line-b: #DEE5F1;

  --r-xl: 26px; --r-lg: 22px; --r-md: 16px; --r-sm: 12px;
  --shadow-s: 0 1px 2px rgba(11,13,18,.035), 0 6px 18px rgba(15,27,61,.045);
  --shadow-m: 0 2px 6px rgba(11,13,18,.045), 0 16px 36px rgba(15,27,61,.085);
  --shadow-l: 0 3px 8px rgba(11,13,18,.05),  0 24px 56px rgba(15,27,61,.10);
  --ease: cubic-bezier(.4,0,.2,1);

  /* the document's own hue, overridden per group by [data-grp] below */
  --hue: #1A73E8; --hue-pale: #EEF4FE; --hue-edge: #CFE0FD;
}

/* the five document groups, given the same quiet placement #wcu8 gives its
   four trust groups — the colour says which family a document belongs to, it
   never says anything about the document's standing. */
.pg [data-grp="reg"]  { --hue:#1A73E8; --hue-pale:#EEF4FE; --hue-edge:#CFE0FD; }
.pg [data-grp="tax"]  { --hue:#188038; --hue-pale:#E9F6ED; --hue-edge:#BFE3CB; }
.pg [data-grp="biz"]  { --hue:#C25E00; --hue-pale:#FDF3E2; --hue-edge:#F3DDB4; }
.pg [data-grp="brand"]{ --hue:#7B4FCF; --hue-pale:#F2EDFB; --hue-edge:#DCCDF3; }
.pg [data-grp="pay"]  { --hue:#0F1B3D; --hue-pale:#EEF1F7; --hue-edge:#C9D2E4; }

/* ---------- the homepage section header ------------------------------------
   Centred at 760px, mono eyebrow, one 800-weight line with an accent full
   stop, sub at 52ch. This is the single most recognisable thing on the
   homepage and every version in this lab opens with it. */
.pg .hp-head{ max-width: 760px; margin-inline: auto; text-align: center; }
.pg .hp-eyebrow{
  margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: .24em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 500;
}
.pg .hp-h{
  margin: .4em 0 0; font-weight: 800; letter-spacing: -.05em; line-height: .98;
  font-size: clamp(40px, 6.6vw, 76px); color: var(--ink); text-wrap: balance;
}
.pg .hp-h i{ font-style: normal; color: var(--accent); }
.pg .hp-sub{
  margin: clamp(14px, 1.6vw, 20px) auto 0; max-width: 52ch;
  font-size: clamp(15px, 1.15vw, 17px); line-height: 1.58; color: var(--ink-2);
}
/* the smaller header a second section inside the same page gets */
.pg .hp-head.is-sm .hp-h{ font-size: clamp(30px, 4.4vw, 50px); }

/* the count chip under a header (#wcu8 .wt-cnt) */
.pg .hp-cnt{
  margin-top: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 15px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line-b); font-size: 12.5px; font-weight: 650; color: var(--ink-2);
}
.pg .hp-cnt b{ font-family: var(--mono); color: var(--accent); }
.pg .hp-cnt b::after{ content: "·"; margin-left: 8px; color: var(--line-b); }
.pg .hp-cnt em{ font-style: normal; color: var(--ink-4); font-weight: 500; }

/* ---------- the faint grid backdrop (#svc3 .s3-grid, #ss1 .ss-grid) -------- */
.pg .hp-grid{
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(to right, var(--gridline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--gridline) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(130% 62% at 50% 0%, #000 6%, transparent 74%);
          mask-image: radial-gradient(130% 62% at 50% 0%, #000 6%, transparent 74%);
}

/* ---------- the workspace card (#indwork .iw-card) ------------------------- */
.pg .hp-card{
  border: 1px solid var(--line-b); border-radius: var(--r-lg);
  background: var(--paper); box-shadow: var(--shadow-m); overflow: hidden;
}
.pg .hp-cardlabel{
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-4); font-weight: 500;
}

/* ---------- the segmented switch (#indwork .iw-switch) --------------------- */
.pg .hp-seg{
  display: inline-flex; padding: 4px; border-radius: 999px;
  background: var(--mist); border: 1px solid var(--line-b);
}
.pg .hp-seg button{
  padding: 7px 16px; border-radius: 999px; border: 0; background: none;
  font-size: 13.5px; font-weight: 600; color: var(--ink-3); cursor: pointer;
  white-space: nowrap; transition: background .18s var(--ease), color .18s var(--ease);
}
.pg .hp-seg button[aria-pressed="true"]{ background: var(--paper); color: var(--ink); box-shadow: var(--shadow-s); }
.pg .hp-seg button:not([aria-pressed="true"]):hover{ color: var(--ink-2); }

/* ---------- the outline pill link (#ss1 .ss-all) --------------------------- */
.pg .hp-all{
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 20px; border: 1px solid var(--accent); border-radius: 999px;
  background: var(--paper); color: var(--accent);
  font-size: 14px; font-weight: 650; white-space: nowrap;
  transition: background .18s var(--ease);
}
.pg .hp-all:hover{ background: #F3F7FE; }
.pg .hp-all svg{ width: 15px; height: 15px; }

/* ---------- the chip (#indwork .iw-chip) ----------------------------------- */
.pg .hp-chip{
  display: inline-flex; align-items: center; gap: 7px;
  padding: 8px 13px; border-radius: 999px; border: 1px solid var(--line-b);
  background: var(--paper); font-size: 13px; font-weight: 550; color: var(--ink-2);
}

/* ---------- the icon tile (#indwork .iw-panel-icn) ------------------------- */
.pg .hp-tile{
  display: grid; place-items: center; width: 56px; height: 56px; flex: none;
  border-radius: 14px; background: var(--hue-pale);
  border: 1px solid var(--hue-edge); color: var(--hue);
}
.pg .hp-tile svg{ width: 28px; height: 28px; }

/* ---------- the arrow cue (#wcu8 .wt-rcue) --------------------------------- */
.pg .hp-cue{
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 650; color: var(--hue);
}
.pg .hp-cue svg{ width: 15px; height: 15px; transition: transform .18s var(--ease); }

/* the homepage's section rhythm, which is looser than the vault lab's */
.pg > section{ padding: clamp(46px, 5.6vw, 92px) 0; }
.pg .wrap{ width: min(var(--maxw), 100% - (2 * var(--pad))); }
.pg .wrap.is-narrow{ width: min(1180px, 100% - (2 * var(--pad))); }

@media (max-width: 760px){
  /* an 18px inline email link is not a tap target; the shared atom in
     _page.css is left byte-identical to the vault lab's, so the phone
     correction is made here instead. */
  .pg .s3-mail{ min-height: 42px; }

  /* the homepage's own phone rule: the header stops being centred and the one
     line gets bigger, not smaller (#wcu8, #about5, #svc3 all do this). */
  .pg .hp-head{ max-width: none; margin-inline: 0; text-align: left; }
  .pg .hp-h{ font-size: clamp(34px, 11.2vw, 48px); }
  .pg .hp-head.is-sm .hp-h{ font-size: clamp(28px, 8.6vw, 38px); }
  .pg .hp-sub{ margin: 13px 0 0; max-width: none; font-size: 15px; line-height: 1.5; }
  .pg .hp-grid{ display: none; }
}
