/* WhatsApp pricing guide (the "WhatsApp Business pricing explained" page). Built on the templates guide's patterns:
   Mint for the two costs, Sky behind what is free, Coral for the worked example's sum (the price panel's field).
   The categories, the before and after table and the journey sit on the ground as surface sheets. Logical
   properties, so Arabic pages mirror. */
.pg-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.pg-prose { display: grid; gap: 14px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.pg-prose p { text-wrap: pretty; }
.pg-prose a, .pg-note a {
  font-weight: 700; color: var(--accent-ink);
  text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.25em;
}
@media not all and (pointer: coarse) {
  :is(.pg-prose, .pg-note) a:hover { text-decoration-thickness: 3px; }
}
.pg-ic {
  flex: none; display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow-xs);
}
.pg-ic .i { width: 19px; height: 19px; }
.pg-source { font-size: 14px; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.pg-note { font-size: 15px; line-height: 1.5; color: var(--ink-soft); max-width: 70ch; text-wrap: pretty; }
.pg-after { margin-top: clamp(24px, 3vw, 36px); max-width: 70ch; }
.pg-block-title { margin: clamp(36px, 4vw, 52px) 0 4px; font: 800 1.15rem/1.3 var(--text); }
.pg-type {
  min-height: 26px; padding: 3px 10px;
  background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line);
  font-size: 12.5px;
}

/* How Meta charges: the model beside the two separate costs */
.pg-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.pg-intro-copy { display: grid; gap: 22px; }
.pg-parts { --field: var(--field-mint); gap: 6px; padding: clamp(22px, 2.6vw, 32px); }
.pg-parts-title { font: 800 15px/1.2 var(--text); color: var(--ink); }
.pg-parts-list { display: grid; }
.pg-part { display: grid; gap: 4px; padding-block: 16px; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.pg-part:first-child { border-top: 0; padding-top: 10px; }
.pg-part dt { display: flex; align-items: center; gap: 12px; font: 800 1.12rem/1.3 var(--text); }
.pg-part dd { margin: 0; padding-inline-start: 48px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }

/* The In Flowella tag: three states that differ in fill, icon and words, never colour alone */
.pg-status { white-space: normal; min-height: 28px; padding: 4px 12px 4px 9px; text-align: start; }
.pg-status .i { flex: none; width: 15px; height: 15px; }
.pg-status.is-yes { background: var(--field-green); color: var(--ink); }
.pg-status.is-partly { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pg-status.is-no { background: var(--surface); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); }
.pg-status-note { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.pg-tagline { display: grid; justify-items: start; align-content: start; gap: 6px; margin: 0; }

/* Five categories: three templates across, then the two replies wider below; the rows are shared (subgrid), so the
   charging lines and the tags line up across each row */
.pg-kind-list { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 20px; }
.pg-kind {
  grid-column: span 2;
  display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: start; gap: 12px;
  padding: 24px 22px 26px; border-radius: calc(24px * var(--sq-scale, 1));
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  corner-shape: var(--sq-shape, round);
}
.pg-kind:nth-child(4):nth-last-child(2), .pg-kind:nth-child(5):nth-last-child(1) { grid-column: span 3; }
@supports not (grid-template-rows: subgrid) {
  .pg-kind { grid-row: auto; }
}
.pg-kind-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pg-kind-ic {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: calc(14px * var(--sq-scale, 1));
  background: var(--coral); color: var(--on-bright); rotate: -4deg;
  corner-shape: var(--sq-shape, round);
}
.pg-kind-ic .i { width: 22px; height: 22px; }
.pg-kind:nth-child(2) .pg-kind-ic { background: var(--sky); rotate: 3deg; }
.pg-kind:nth-child(3) .pg-kind-ic { background: var(--mint); rotate: -3deg; }
.pg-kind:nth-child(4) .pg-kind-ic { background: var(--green); rotate: 4deg; }
.pg-kind:nth-child(5) .pg-kind-ic { background: var(--field-blue); rotate: -2deg; }
.pg-kind h3 { font: 800 1.3rem/1.25 var(--text); }
.pg-kind-text { font-size: 16px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.pg-kind-meta { padding-top: 12px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }

/* What changed on 1 October 2026: the shared table, its text left-aligned; the after column reads in full ink */
.pg-table :is(th, td) { text-align: start; vertical-align: top; min-width: 12rem; }
.pg-table :is(th, td):first-child { width: 24%; }
.pg-table thead th { font-size: 14.5px; }
.pg-table tbody th { font: 700 16px/1.4 var(--text); }
.pg-table tbody td { font-size: 16px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.pg-table tbody td.is-after { color: var(--ink); }
.pg-table thead .is-after { background: var(--field-sky); }

/* When Meta doesn't charge: one Sky Field card, the notes two across */
.pg-free-card { --field: var(--field-sky); padding: clamp(26px, 4vw, 56px); }
.pg-free-card .pg-head { margin-bottom: clamp(20px, 2.6vw, 32px); }
.pg-note-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); }
.pg-note-item { display: grid; align-content: start; gap: 6px; padding-block: 18px; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.pg-note-item dt { display: flex; align-items: center; gap: 12px; font: 800 1.08rem/1.3 var(--text); }
.pg-note-item dd { margin: 0; padding-inline-start: 48px; font-size: 16px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.pg-note-item .pg-note-meta { padding-top: 4px; font-size: 14.5px; color: var(--ink); }

/* Rows: a name and what it means */
.pg-rows { display: grid; }
.pg-rowline {
  display: grid; grid-template-columns: minmax(0, 13rem) minmax(0, 1fr); align-items: start; gap: 6px 24px;
  padding-block: 16px; border-top: 1px solid var(--line);
}
.pg-rowline:first-child { border-top: 0; }
.pg-rowline dt { font: 700 16px/1.4 var(--text); color: var(--ink); }
.pg-rowline dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }

/* Volume tiers and the dates: a sticky head beside the list */
.pg-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.pg-sticky { position: sticky; top: 104px; margin-bottom: 0; }
.pg-split-body .pg-block-title { margin-top: clamp(28px, 3vw, 40px); }

/* One customer, message by message: a surface sheet with a row per message. Wide screens read it as a table (when,
   what happens, category, what Meta charges); narrower ones stack each row under its time and tags. */
.pg-jr-sheet {
  padding: 6px clamp(18px, 2.4vw, 28px);
  border: 1px solid var(--line); border-radius: calc(24px * var(--sq-scale, 1));
  background: var(--surface); box-shadow: var(--shadow-sm);
  corner-shape: var(--sq-shape, round);
}
.pg-jr-row {
  display: grid; grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr) minmax(0, 9.5rem) minmax(0, 13rem);
  align-items: start; gap: 8px 24px; padding-block: 18px;
}
.pg-jr-list .pg-jr-row { border-top: 1px solid var(--line); }
.pg-jr-cols { padding-block: 14px 12px; font: 700 13.5px/1.3 var(--text); color: var(--ink-soft); }
.pg-when { font: 700 14px/1.4 var(--text); color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.pg-msg { display: grid; gap: 4px; min-width: 0; }
.pg-who { font: 700 13.5px/1.3 var(--text); color: var(--ink-soft); }
.pg-msg-text { font: 700 16px/1.45 var(--text); color: var(--ink); text-wrap: pretty; }
.pg-why { font-size: 15px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; max-width: 62ch; }
.pg-jr-row.is-cust .pg-msg-text { font-weight: 500; }
.pg-cat, .pg-cost { display: flex; flex-wrap: wrap; align-items: start; }
.pg-cat-tag { min-height: 28px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line); }
/* What Meta charges: Sunset Coral when it does (DESIGN.md, Price Tags), Green Field when it is free, Mist when it is
   free only within the 1,000 */
.pg-fee { white-space: normal; min-height: 28px; padding: 4px 12px 4px 9px; text-align: start; font-variant-numeric: tabular-nums; }
.pg-fee .i { flex: none; width: 15px; height: 15px; }
.pg-fee.is-charged { background: var(--coral); color: var(--on-bright); box-shadow: var(--shadow-xs); }
.pg-fee.is-free { background: var(--field-green); color: var(--ink); }
.pg-fee.is-tier { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.pg-sum { --field: var(--field-coral); gap: 8px; margin-top: 20px; padding: clamp(22px, 3vw, 36px); }
.pg-sum-title { font: 800 clamp(1.15rem, 1rem + 0.6vw, 1.45rem)/1.3 var(--text); text-wrap: balance; max-width: 40ch; }
.pg-sum-text { font-size: 16.5px; line-height: 1.55; color: var(--ink); max-width: 72ch; text-wrap: pretty; }

/* When rates change: the notice rules under the head, Meta's dates on a rail beside them, then the currencies */
.pg-notice { display: grid; margin-top: 8px; }
.pg-notice-item { display: grid; gap: 4px; padding-block: 14px; border-top: 1px solid var(--line); }
.pg-notice-item dt { font: 700 16px/1.35 var(--text); }
.pg-notice-item dd { margin: 0; font-size: 15px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.pg-notice-item .pg-notice-tag { padding-top: 4px; }
.pg-time { position: relative; display: grid; padding-inline-start: 36px; }
.pg-time::before {
  content: ""; position: absolute; inset-block: 12px 28px; inset-inline-start: 7px;
  width: 2px; border-radius: 2px; background: var(--line);
}
.pg-time-item { position: relative; display: grid; gap: 4px; padding-bottom: 30px; }
.pg-time-item:last-child { padding-bottom: 0; }
.pg-time-item::before {
  content: ""; position: absolute; inset-inline-start: -36px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box;
  background: var(--ground); border: 3px solid var(--mint);
}
.pg-time-item h3 { font: 800 1.12rem/1.3 var(--text); text-wrap: balance; }
.pg-time-item p:not(.pg-when) { font-size: 16px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; max-width: 58ch; }
.pg-cur { margin-top: clamp(40px, 5vw, 64px); }
.pg-cur .pg-block-title { margin-top: 0; margin-bottom: 8px; }
.pg-cur-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 56px); }
.pg-cur-item { display: grid; align-content: start; gap: 6px; padding-block: 16px; border-top: 1px solid var(--line); }
.pg-cur-item dt { font: 700 16px/1.4 var(--text); }
.pg-cur-item dd { margin: 0; font-size: 16px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }

/* Six ways to spend less: two across on the ground, each with its icon */
.pg-tip-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(28px, 4vw, 64px); }
.pg-tip {
  display: grid; grid-template-columns: auto minmax(0, 1fr); align-content: start; gap: 6px 16px;
  padding-block: 22px; border-top: 1px solid var(--line);
}
.pg-tip-ic {
  grid-row: span 2; display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: calc(14px * var(--sq-scale, 1));
  background: var(--field-mint); color: var(--ink);
  corner-shape: var(--sq-shape, round);
}
.pg-tip-ic .i { width: 21px; height: 21px; }
.pg-tip h3 { font: 800 1.12rem/1.3 var(--text); text-wrap: balance; }
.pg-tip p { font-size: 16px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }

/* Where to go next: three whole-card links */
.pg-next-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(28px, 3.4vw, 44px); }
.pg-next-card { gap: 10px; padding-bottom: 60px; }
.pg-next-card .card-title { font: 800 1.2rem/1.3 var(--text); text-wrap: balance; }
.pg-next-card p { font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.pg-go {
  position: absolute; inset-inline-start: clamp(20px, 2.4vw, 28px); bottom: 20px;
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%;
  background: var(--field-sky); color: var(--accent-ink);
}
.pg-go .i { width: 18px; height: 18px; }

@media (max-width: 1179px) {
  .pg-jr-row { grid-template-columns: minmax(0, 7.5rem) minmax(0, 1fr) minmax(0, 8.5rem) minmax(0, 11rem); gap: 8px 18px; }
}
@media (max-width: 1023px) {
  .pg-intro-grid, .pg-split { grid-template-columns: minmax(0, 1fr); }
  .pg-sticky { position: static; }
  .pg-kind-list { grid-template-columns: minmax(0, 1fr); }
  .pg-kind, .pg-kind:nth-child(4):nth-last-child(2), .pg-kind:nth-child(5):nth-last-child(1) { grid-column: auto; grid-row: auto; grid-template-rows: none; }
  .pg-next-list { grid-template-columns: minmax(0, 1fr); }
  /* The journey stacks: time, category and what Meta charges on one line, the message under them */
  .pg-jr-cols { display: none; }
  .pg-jr-list .pg-jr-row:first-child { border-top: 0; }
  .pg-jr-row {
    grid-template-columns: auto auto minmax(0, 1fr); grid-template-areas: "when cat cost" "msg msg msg";
    align-items: center; gap: 10px 12px;
  }
  .pg-jr-row .pg-when { grid-area: when; }
  .pg-jr-row .pg-cat { grid-area: cat; }
  .pg-jr-row .pg-cat:empty { display: none; }
  .pg-jr-row .pg-cost { grid-area: cost; justify-content: end; }
  .pg-jr-row .pg-msg { grid-area: msg; }
}
@media (max-width: 899px) {
  .pg-note-list, .pg-cur-list, .pg-tip-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .pg-prose { font-size: 17px; }
  .pg-rowline { grid-template-columns: minmax(0, 1fr); }
  /* The before and after table stacks: each change becomes a block, its two cells labelled */
  .pg-table-wrap { overflow: visible; }
  .pg-table, .pg-table :is(tbody, tr, th, td) { display: block; }
  .pg-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .pg-table :is(th, td), .pg-table :is(th, td):first-child { width: auto; min-width: 0; position: static; border-inline-end: 0; }
  .pg-table tbody tr { border-bottom: 1px solid var(--line); }
  .pg-table tbody tr:last-child { border-bottom: 0; }
  .pg-table tbody :is(th, td) { border-bottom: 0; padding-block: 6px; }
  .pg-table tbody th { padding-top: 18px; }
  .pg-table tbody td:last-child { padding-bottom: 18px; }
  .pg-table tbody td::before { content: attr(data-label); display: block; margin-bottom: 2px; font: 700 13px/1.3 var(--text); color: var(--ink-soft); }
  .pg-jr-row { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "when cost" "cat cat" "msg msg"; }
  .pg-jr-row .pg-msg { padding-top: 2px; }
}
