/* Click-to-WhatsApp ads guide (the "What are Click-to-WhatsApp ads?" page). The templates guide's patterns and tokens,
   one field per chapter where a field earns it: Mint for where the ads run, Sky behind what Flowella does. The free
   window and the first reply sit on the ground as surface cards. Logical properties, so Arabic pages mirror. */
.cg-head { display: grid; gap: 16px; max-width: 780px; margin-bottom: clamp(32px, 4vw, 52px); }
.cg-prose { display: grid; gap: 14px; font-size: 18px; line-height: 1.6; color: var(--ink-soft); max-width: 62ch; }
.cg-prose p { text-wrap: pretty; }
.cg-prose a, .cg-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(.cg-prose, .cg-note) a:hover { text-decoration-thickness: 3px; }
}
.cg-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);
}
.cg-ic .i { width: 19px; height: 19px; }
.cg-source { font-size: 14px; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.cg-note { font-size: 15px; line-height: 1.5; color: var(--ink-soft); max-width: 70ch; text-wrap: pretty; }

/* What the ads are: the definition beside where customers see them */
.cg-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.cg-intro-copy { display: grid; gap: 22px; }
.cg-parts { --field: var(--field-mint); gap: 6px; padding: clamp(22px, 2.6vw, 32px); }
.cg-parts-title { font: 800 15px/1.2 var(--text); color: var(--ink); }
.cg-parts-list { display: grid; }
.cg-part { display: grid; gap: 4px; padding-block: 16px; border-top: 1px solid color-mix(in srgb, var(--ink) 14%, transparent); }
.cg-part:first-child { border-top: 0; padding-top: 10px; }
.cg-part dt { display: flex; align-items: center; gap: 12px; font: 800 1.12rem/1.3 var(--text); }
.cg-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 */
.cg-status { white-space: normal; min-height: 28px; padding: 4px 12px 4px 9px; text-align: start; }
.cg-status .i { flex: none; width: 15px; height: 15px; }
.cg-status.is-yes { background: var(--field-green); color: var(--ink); }
.cg-status.is-partly { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.cg-status.is-no { background: var(--surface); color: var(--ink-soft); box-shadow: inset 0 0 0 1px var(--line); }
.cg-status-note { font-size: 13.5px; line-height: 1.45; color: var(--ink-soft); text-wrap: pretty; }
.cg-tagline { display: grid; justify-items: start; align-content: start; gap: 6px; margin: 0; }

/* The journey: one real screen per step, four across; the rows share heights so the text lines up (subgrid) */
.cg-shot {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--line); border-radius: calc(26px * var(--sq-scale, 1));
  background: var(--surface); box-shadow: var(--shadow-sm);
  corner-shape: var(--sq-shape, round);
}
.cg-shot-none { aspect-ratio: 640 / 1387; }
/* No row gap on the list: a subgrid's own 6px gap would be padded out to the list's gap between every inner row.
   The space between rows of screens is the foot's bottom padding instead. */
.cg-gal-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0 clamp(20px, 2.4vw, 32px); }
.cg-gal-item { display: grid; grid-row: span 5; grid-template-rows: subgrid; align-content: start; gap: 6px; }
@supports not (grid-template-rows: subgrid) {
  .cg-gal-item { grid-row: auto; }
}
.cg-cat { margin-top: 14px; font: 700 12.5px/1.3 var(--text); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); }
.cg-cat:empty { margin-top: 0; }
.cg-gal-title { font: 800 1.12rem/1.3 var(--text); text-wrap: balance; }
.cg-gal-text { font-size: 15.5px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.cg-gal-foot { display: grid; justify-items: start; align-content: start; gap: 8px; padding: 4px 0 clamp(40px, 4.4vw, 60px); }
.cg-limit { font-size: 13.5px; line-height: 1.4; color: var(--ink); font-weight: 600; text-wrap: pretty; }
.cg-more { margin-top: clamp(16px, 2vw, 24px); max-width: 920px; }
.cg-block-title { margin-bottom: 4px; font: 800 1.15rem/1.3 var(--text); }
.cg-gal-note { margin-top: clamp(32px, 4vw, 48px); }

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

/* The free entry point window: four steps in a row, each numbered (the order is the point) */
.cg-step-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.cg-step {
  display: grid; grid-template-rows: subgrid; grid-row: span 3; 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);
}
@supports not (grid-template-rows: subgrid) {
  .cg-step { grid-row: auto; }
}
.cg-num {
  justify-self: start; display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: calc(14px * var(--sq-scale, 1));
  background: var(--mint); color: var(--on-bright);
  font: 800 22px/1 var(--display); font-variant-numeric: tabular-nums;
  rotate: -4deg;
  corner-shape: var(--sq-shape, round);
}
.cg-step:nth-child(2) .cg-num { background: var(--sky); rotate: 3deg; }
.cg-step:nth-child(3) .cg-num { background: var(--green); rotate: -3deg; }
.cg-step:nth-child(4) .cg-num { background: var(--coral); rotate: 4deg; }
.cg-step h3 { font: 800 1.15rem/1.3 var(--text); text-wrap: balance; }
.cg-step p { font-size: 16px; line-height: 1.5; color: var(--ink-soft); text-wrap: pretty; }
.cg-steps-note { margin-top: clamp(24px, 3vw, 36px); max-width: 70ch; }

/* What arrives with the first message: a sticky head beside the details, then the ways to measure */
.cg-split { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 32px clamp(32px, 5vw, 80px); align-items: start; }
.cg-sticky { position: sticky; top: 104px; margin-bottom: 0; }
.cg-lim-rows .cg-rowline { grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); }
.cg-lim-rows dt { overflow-wrap: anywhere; }
.cg-measure { margin-top: clamp(40px, 4.4vw, 60px); scroll-margin-top: 104px; }

/* The first reply: three surface cards, their rows shared so the tags line up (subgrid) */
.cg-kind-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; }
.cg-kind {
  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);
}
@supports not (grid-template-rows: subgrid) {
  .cg-kind { grid-row: auto; }
}
.cg-kind-ic {
  justify-self: start; 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);
}
.cg-kind-ic .i { width: 22px; height: 22px; }
.cg-kind:nth-child(2) .cg-kind-ic { background: var(--sky); rotate: 3deg; }
.cg-kind:nth-child(3) .cg-kind-ic { background: var(--mint); rotate: -3deg; }
.cg-kind h3 { font: 800 1.3rem/1.25 var(--text); }
.cg-kind-text { font-size: 16px; line-height: 1.5; color: var(--ink); text-wrap: pretty; }
.cg-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; }
.cg-kinds-note { margin-top: clamp(24px, 3vw, 36px); }

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

/* Where to go next: three whole-card links */
.cg-next-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: clamp(28px, 3.4vw, 44px); }
.cg-next-card { gap: 10px; padding-bottom: 60px; }
.cg-next-card .card-title { font: 800 1.2rem/1.3 var(--text); text-wrap: balance; }
.cg-next-card p { font-size: 16px; line-height: 1.5; color: var(--ink-soft); }
.cg-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);
}
.cg-go .i { width: 18px; height: 18px; }

@media (max-width: 1179px) {
  .cg-gal-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) {
  .cg-intro-grid, .cg-split { grid-template-columns: minmax(0, 1fr); }
  .cg-sticky { position: static; }
  .cg-kind-list { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .cg-kind { grid-row: auto; grid-template-rows: none; }
  .cg-step-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-next-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 899px) {
  .cg-gal-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cg-note-list { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 719px) {
  .cg-prose { font-size: 17px; }
  .cg-step-list { grid-template-columns: minmax(0, 1fr); }
  .cg-rowline, .cg-lim-rows .cg-rowline { grid-template-columns: minmax(0, 1fr); }
  .cg-rowline .cg-rowline-tag { grid-column: 1; }
}
/* On a phone the screens become a row to swipe, one and a bit in view, so the next one shows there is more */
@media (max-width: 559px) {
  .cg-gal-list {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 76%; grid-template-rows: repeat(5, auto);
    column-gap: 16px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
  }
  .cg-gal-item { scroll-snap-align: start; }
  .cg-gal-foot { padding-bottom: 0; }
}
