/* automations.html (rebuilt 31 Oct 2026, in the homepage's language). The shared pieces (.ih, .ih-stage, .st-card, .win, the
   homepage's .pd-nav, .feat, .cm, .faq3, .closing2) are in site.css; this file holds only this page's own.
   Channels as on the homepage's communication section: WhatsApp green, app notification blue, team task gold, payment link black. */
.c-wa { --c: #25D366; --cink: #128C4A; }
.c-push { --c: #3B87F7; --cink: #1F5FC8; }
.c-task { --c: #E3A93C; --cink: #8A5A08; }
.c-pay { --c: #000; --cink: #000; }

/* a channel as a small round badge (the homepage's .cm-badge, smaller) */
.au-ch { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--c); color: #fff; font-style: normal; }
.au-ch svg, .win .au-ch .ic, .st-card .au-ch .ic { width: 14px; height: 14px; }
.au-ch .ic { fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.st-card-h .au-ch { width: 24px; height: 24px; }

/* the product's switch, on, in its green (the knob at the end, as in RTL) */
.au-sw { position: relative; flex: none; justify-self: end; width: 34px; height: 20px; border-radius: 999px; background: #18E588; font-style: normal; }
.au-sw::after { content: ""; position: absolute; top: 2px; inset-inline-end: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }

/* WhatsApp's own look: the chat's wallpaper, the studio's message in green with the time and blue ticks (as the homepage's leads popover) */
.au-wall { display: grid; gap: 4px; padding: 10px; border-radius: 12px; background: #EFEAE2; }
.au-bub { justify-self: end; max-width: 94%; margin: 0; padding: 7px 9px 4px; border-radius: 0 10px 10px 10px; background: #D9FDD3; color: #111B21;
  font-size: 13.5px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0, 0, 0, .08); }
.au-bub small { display: flex; align-items: center; justify-content: flex-start; gap: 3px; margin-top: 2px; direction: ltr; font-size: 10.5px; color: #667781; }
.au-bub small svg { width: 15px; height: 10px; fill: none; stroke: #53BDEB; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Hero: the studio wall, the product's window on אוטומציות, two frosted cards on the side ---------- */
.au-stage { height: clamp(540px, 50vw, 640px); }
.au-win { top: 40px; bottom: 40px; inset-inline-start: clamp(24px, 4cqw, 48px); width: min(730px, calc(100% - 330px)); }
.au-win .win-main { gap: 12px; }
.au-win .win-main > * { flex-shrink: 0; } /* the list is cut by the window's bottom; nothing above it gives way */
/* site.css hides .pd-nav in any container under 760px (the homepage's rule) while .win keeps its sidebar column until 700px: collapse it here too */
@container ihs (max-width: 759px) { .win { grid-template-columns: minmax(0, 1fr); } }
.au-tools { display: flex; gap: 14px; }
.win-h .au-zero { display: inline-flex; align-items: center; gap: 8px; height: 34px; padding-inline: 5px 12px; border-radius: 999px; background: #E3F8EA; color: #14532D; }
.win-h .au-zero b { display: grid; place-items: center; height: 24px; padding: 0 9px; border-radius: 999px; background: #18E588; color: #000; font-size: 14px; font-weight: 800; letter-spacing: 0; }
.win-h .au-zero small { font-size: 11.5px; font-weight: 600; color: inherit; }
/* the product's underline tabs: the automations by what they're for */
.au-tabs { display: flex; gap: 18px; margin: -2px -18px 0; padding: 0 18px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.au-tabs i { position: relative; display: inline-flex; align-items: center; gap: 6px; padding-bottom: 9px; font-style: normal; font-weight: 600; }
.au-tabs i.on { color: #000; }
.au-tabs i.on::after { content: ""; position: absolute; inset-inline: 0; bottom: -1px; height: 2px; border-radius: 2px; background: #000; }
.au-tabs em { display: grid; place-items: center; min-width: 18px; height: 16px; padding: 0 5px; border-radius: 8px; background: var(--paper-2); font-size: 10px; font-style: normal; font-weight: 700; }
.au-tabs .on em { background: #000; color: #fff; }
/* the automations: when, then (with its channel), how many this month, the switch */
.au-list { display: grid; }
.au-list li { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.25fr) 64px 34px; gap: 14px; align-items: center; min-height: 54px; border-top: 1px solid var(--paper-2); }
.au-list li.au-lh { min-height: 0; padding-bottom: 6px; border-top: 0; font-size: 10.5px; font-weight: 600; color: var(--ink-2); }
.au-lh span:nth-child(3) { text-align: end; }
.au-when { font-size: 13px; font-weight: 700; }
.au-do { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12.5px; color: #3A3A3F; white-space: nowrap; }
.au-n { display: grid; justify-items: end; font-size: 10.5px; line-height: 1.2; color: var(--ink-2); }
.au-n b { font-size: 16px; font-weight: 800; color: #000; font-variant-numeric: tabular-nums; }

.au-maya { left: clamp(14px, 2cqw, 24px); top: 60px; width: 304px; display: grid; gap: 10px; }
.au-foot { font-size: 13px; color: var(--ink-2); }
.au-task { left: clamp(28px, 5cqw, 56px); bottom: 52px; width: 262px; display: grid; gap: 10px; }
.au-todo { display: flex; align-items: center; gap: 10px; font-size: 19px; }
.au-todo i { flex: none; width: 18px; height: 18px; border: 2px solid #000; border-radius: 5px; }
.au-todo b { font-weight: 700; }
.au-who { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--ink-2); }
.au-av { display: inline-flex; align-items: center; gap: 6px; padding-block: 3px; padding-inline: 3px 11px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); color: #000; font-weight: 600; }
.au-av i { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: #000; color: #fff; font-size: 11px; font-style: normal; font-weight: 700; }

/* narrower stages: the window across the top, the cards side by side over its bottom edge */
@container ihs (max-width: 979px) {
  .au-win { top: 24px; bottom: 190px; inset-inline: 24px; width: auto; }
  .au-maya { top: auto; bottom: 24px; left: 24px; width: calc(50% - 36px); }
  .au-task { bottom: 24px; left: auto; right: 24px; width: calc(50% - 36px); }
}
@media (max-width: 1060px) { .au-stage { height: 700px; } }
/* phones: the window loses the sidebar (site.css) and the "then" column; the task card goes, Maya's message stays */
@container ihs (max-width: 599px) {
  .au-win { top: 14px; bottom: auto; height: 420px; inset-inline: 12px; }
  .au-win .win-main { padding: 0 14px 14px; }
  .au-win .win-top { margin: 0 -14px; padding: 0 14px; }
  .au-tabs { margin-inline: -14px; padding-inline: 14px; gap: 14px; }
  .au-tabs i:nth-child(n+4) { display: none; }
  .win-h .au-zero small { display: none; }
  .au-list li { grid-template-columns: 26px minmax(0, 1fr) 46px 34px; gap: 10px; min-height: 50px; }
  .au-list li.au-lh { display: none; }
  .au-do { display: contents; }
  .au-do .au-ch { order: -1; }
  .au-dt { display: none; }
  .au-when { font-size: 13.5px; }
  .au-maya { left: 12px; right: 12px; bottom: 14px; width: auto; }
  .au-task { display: none; }
}
@media (max-width: 599px) { .au-stage { height: 640px; } }

/* ---------- Six automations: "when / then" cards, each with its channel's badge over the corner ---------- */
.au-rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 38px 16px; padding-top: 18px; }
.au-rules li { position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px 24px 22px; border-radius: 22px; background: #fff; }
.au-rb { position: absolute; top: -20px; inset-inline-start: 20px; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--c); color: #fff;
  box-shadow: 0 0 0 4px #fff; }
.au-rb svg { width: 22px; height: 22px; }
.au-rb .ic { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.au-rc { margin-top: -10px; padding-inline-start: 58px; font-size: 14.5px; font-weight: 700; color: var(--cink); }
.au-r { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px; align-items: start; font-size: 18px; line-height: 1.5; }
.au-r .k { display: grid; place-items: center; height: 28px; border-radius: 8px; background: var(--panel); font-size: 14px; font-weight: 700; }
.au-r.then .k { background: #000; color: #fff; }
.au-r.then::before { content: ""; position: absolute; top: -14px; inset-inline-start: 21px; width: 2px; height: 14px; background: var(--line); }
.au-r b { font-weight: 700; }
.au-why { margin-top: auto; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 15.5px; color: var(--ink-2); }
.au-why b { color: #000; font-weight: 700; }
@media (max-width: 999px) { .au-rules { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .au-rules { grid-template-columns: minmax(0, 1fr); gap: 34px; } .au-rules li { padding: 22px 18px 18px; } }

/* ---------- Three versions of one message, in WhatsApp's look, inside the automation's editor, on a grey dot panel ---------- */
.au-p { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 30em; }
.au-ver { position: relative; padding: clamp(28px, 4vw, 52px) clamp(14px, 3.5vw, 44px); border-radius: 28px;
  background: #F2F2F3 radial-gradient(rgba(0, 0, 0, .075) 1px, transparent 1.6px) 0 0 / 22px 22px; }
.au-ed { display: grid; gap: 12px; max-width: 460px; margin: 0 auto; padding: 16px; border-radius: 22px; background: #fff; color: #000;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .05), 0 30px 60px -28px rgba(0, 0, 0, .35); }
.au-ed p { margin: 0; }
.au-ed-h { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--paper-2); }
.au-ed-h .au-ch { width: 38px; height: 38px; }
.au-ed-h .au-ch svg { width: 19px; height: 19px; }
.au-ed-h p { display: grid; line-height: 1.3; }
.au-ed-h b { font-size: 16.5px; font-weight: 800; }
.au-ed-h small { font-size: 12.5px; color: var(--ink-2); }
.au-ed-h .au-sw { margin-inline-start: auto; }
.au-ed-k { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 12.5px; font-weight: 700; }
.au-ed-k span { font-weight: 500; color: var(--ink-2); }
.au-ver .au-wall { gap: 6px; padding: 14px 12px 16px; }
.au-to { justify-self: end; display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11.5px; color: #54656F; }
.au-to:first-child { margin-top: 0; }
.au-to span { padding: 1px 7px; border-radius: 6px; background: rgba(255, 255, 255, .8); color: #111B21; font-weight: 700; }
.au-ver .au-bub { max-width: 90%; font-size: 14.5px; }

/* ---------- Communication: the homepage's section (.cm), with two links ---------- */
.au-links { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.nw { white-space: nowrap; }

/* the closing's notices: WhatsApp's icon is a filled glyph, not a line icon */
.cf-c svg.wa-i { fill: currentColor; stroke: none; }
