/* Automations as compact cards (from ~/Desktop/kairos-auto-fusion/cards-v2, 2026-10-20).
   One product at a time: product headline, five logo tabs, three cards (one mechanism card + two photo cards).
   Everything is scoped under .acw so it can't touch the rest of the site. */
.acw {
  --dk: #161412; --dk-2: #5f5a54; --dk-3: #8d867e;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --tone: #f4f1ec; --acc: #ff3b3f;
  --ac-ink-2: #a8a7a3; --ac-ink-3: #6b6a67; --ac-line: #2a2a2a; --ac-bg-3: #141414;
  max-width: 1360px; margin: 0 auto; padding: clamp(40px, 7vh, 80px) var(--gut) 0;
  border-top: 1px solid var(--line);
}
.acw .ac-hl { text-align: center; font-weight: 400; text-transform: uppercase; letter-spacing: -.035em; line-height: .98; font-size: clamp(30px, 3.6vw, 56px); text-wrap: balance; transition: opacity .35s var(--ease); }
.acw .ac-hl em { font-size: .86em; color: var(--ac-ink-2); letter-spacing: -.01em; }
.acw .ac-hl.out { opacity: 0; }
.acw h3, .acw p { margin: 0; }
/* Compact automation cards: one product at a time, three cards each —
   one tonal "mechanism" card and two photo cards with a floating UI moment */


/* ---------- product tabs ---------- */
.acw .tabs { display: flex; justify-content: center; gap: 6px; margin: 0 auto clamp(26px, 4vh, 40px); flex-wrap: wrap; }
.acw .job { margin-top: 16px; }
.acw .tab {
  position: relative; display: flex; align-items: center; gap: 10px; height: 46px; padding: 0 18px; border-radius: 23px;
  background: transparent; border: 1px solid var(--ac-line); cursor: pointer; color: var(--ac-ink-3);
  transition: border-color .35s var(--ease), background .35s var(--ease);
}
.acw .tab img { height: 15px; width: auto; display: block; opacity: .5; transition: opacity .35s; }
.acw .tab img.inv { filter: invert(1); }
.acw .tab img.mono { filter: grayscale(1) brightness(1.9); }
.acw .tab:hover img { opacity: .85; }
.acw .tab.on { background: var(--ac-bg-3); border-color: #3a3a3a; }
.acw .tab.on img { opacity: 1; }
/* progress line while the deck auto-advances */
.acw .tab i { position: absolute; left: 18px; right: 18px; bottom: 8px; height: 1px; background: var(--ac-ink-3); transform: scaleX(0); transform-origin: left; opacity: 0; }
.acw .tab.on i { opacity: 1; }
.acw .tabs.held .tab i { opacity: 0; }
.acw .job { text-align: center; color: var(--ac-ink-2); font-size: 15px; min-height: 1.5em; transition: opacity .35s var(--ease); }
.acw .any { text-align: center; color: var(--ac-ink-3); font-size: 13px; margin: 4px auto clamp(18px, 3vh, 28px); max-width: 80ch; min-height: 1.4em; text-wrap: balance; transition: opacity .35s var(--ease); }

/* ---------- deck: three cards ---------- */
.acw .deck { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
/* switching: old cards (ghost copy) fade out on top while the new ones fade in underneath (autocards.js show) */
.acw { position: relative; }
.acw .deck.ghost { position: absolute; z-index: 2; margin: 0; pointer-events: none; animation: ac-ghost .5s var(--ease) forwards; }
.acw .deck.in { animation: ac-in .5s var(--ease); }
@keyframes ac-ghost { to { opacity: 0; } }
@keyframes ac-in { from { opacity: 0; } }
.acw .cd {
  container-type: inline-size;
  position: relative; overflow: hidden; border-radius: 18px; height: clamp(420px, calc(100vh - 380px), 520px);
  padding: 26px 26px 28px; display: flex; flex-direction: column; color: var(--dk);
}
.acw .lab { font-size: 14px; font-weight: 500; position: relative; z-index: 2; }
.acw .cd h3 { margin-top: 10px; font-weight: 400; font-size: clamp(26px, 2.2vw, 34px); line-height: 1.04; letter-spacing: -.03em; position: relative; z-index: 2; }
.acw .ac-foot { text-wrap: pretty; font-size: 14.5px; line-height: 1.38; color: var(--dk-2); max-width: 30ch; position: relative; z-index: 2; }
.acw .viz { flex: 1; position: relative; margin: 10px -6px; }

/* mechanism card */
.acw .mech { background: var(--tone); }

/* photo cards */
.acw .photo { color: #fff; background: #5d554d; }
.acw .ph-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 7s linear; }
.acw .cd.live .ph-img { transform: scale(1.04); }
.acw .ph-ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255,255,255,.4); font-size: 12px; line-height: 1.4; text-align: center; padding: 40px; background: linear-gradient(160deg, #6c645b, #3f3a35); }
.acw .ph-shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.66), rgba(0,0,0,.32) 26%, rgba(0,0,0,0) 46%, rgba(0,0,0,0) 60%, rgba(0,0,0,.66)); }
.acw .photo .ac-foot { color: rgba(255,255,255,.84); }

/* ---------- shared UI pieces ---------- */
.acw .mk { fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.acw .mk circle.f { fill: currentColor; stroke: none; }
.acw .pop { opacity: 0; transform: translateY(16px) scale(.94); transition: opacity .35s, transform .7s var(--spring); }
.acw .pop.on { opacity: 1; transform: none; }
.acw .drop { opacity: 0; transform: translateY(-24px) scale(.94); transition: opacity .35s, transform .75s var(--spring); }
.acw .drop.on { opacity: 1; transform: none; }
.acw .chip { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 12px; border-radius: 15px; font-size: 12.5px; white-space: nowrap; background: #fff; border: 1px solid rgba(22,20,18,.1); color: var(--dk); }
.acw .chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); flex: none; }
.acw .chip.dk { background: var(--dk); color: #fff; border-color: var(--dk); }

/* notification (iOS-ish, light) */
.acw .note {
  display: flex; align-items: center; gap: 11px; padding: 11px 14px 11px 11px; border-radius: 14px; width: 100%; max-width: 330px;
  background: rgba(255,255,255,.94); color: var(--dk); box-shadow: 0 14px 34px rgba(0,0,0,.2);
}
.acw .ni { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--dk); color: #fff; display: grid; place-items: center; }
.acw .ni .mk { width: 19px; height: 19px; }
.acw .nt { text-wrap: pretty; display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.3; min-width: 0; }
.acw .nt b { font-weight: 500; }
.acw .nt small { font-size: 12px; color: var(--dk-2); }
.acw .nd { width: 7px; height: 7px; flex: none; margin-left: auto; border-radius: 50%; background: var(--acc); }
.acw .on .nd, .acw .note.on .nd { animation: ac-pulse 1.6s var(--ease) infinite; }
@keyframes ac-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,59,63,.45); } 50% { box-shadow: 0 0 0 6px rgba(255,59,63,0); } }

/* glass bubbles on photos */
.acw .gl { display: flex; flex-direction: column; gap: 8px; }
.acw .gb {
  text-wrap: pretty;
  max-width: 86%; padding: 11px 15px; border-radius: 16px; font-size: 14px; line-height: 1.36; color: #fff;
  background: rgba(255,255,255,.17); border: 1px solid rgba(255,255,255,.18);
  -webkit-backdrop-filter: blur(14px) saturate(1.2); backdrop-filter: blur(14px) saturate(1.2);
}
.acw .gb.out { align-self: flex-start; border-bottom-left-radius: 6px; background: rgba(22,20,18,.5); }
.acw .gb.in { align-self: flex-end; border-bottom-right-radius: 6px; background: rgba(22,20,18,.58); border-color: rgba(255,255,255,.14); }
.acw .gb.solid { background: rgba(255,255,255,.94); color: var(--dk); border-color: transparent; }
.acw .who { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: rgba(255,255,255,.9); }
.acw .av { width: 22px; height: 22px; border-radius: 50%; background: #fff; color: var(--dk); display: grid; place-items: center; font-size: 10px; font-weight: 600; }
.acw .av .mk { width: 13px; height: 13px; }
.acw .done { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 13px; border-radius: 16px; background: #fff; color: var(--dk); font-size: 13px; }
.acw .chip .tk { width: 14px; height: 14px; background: #fff; }
.acw .chip .tk::after { left: 4.6px; top: 2px; width: 3.4px; height: 7px; border-color: var(--dk); }
.acw .done i, .acw .tk {
  width: 16px; height: 16px; border-radius: 50%; background: var(--acc); position: relative; flex: none;
}
.acw .done i::after, .acw .tk::after { content: ''; position: absolute; left: 5.5px; top: 2.5px; width: 4px; height: 8px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); }

/* ---------- mechanism visuals ---------- */
/* echo · ring → timer → reply */
.acw .v-reply .call { position: absolute; left: 50%; top: 30%; width: 64px; height: 64px; margin: -32px 0 0 -32px; transition: transform .6s var(--spring); }
.acw .v-reply .ph { position: absolute; inset: 0; border-radius: 50%; background: var(--acc); color: #fff; display: grid; place-items: center; }
.acw .v-reply .ph .mk { width: 26px; height: 26px; }
.acw .v-reply .ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--acc); opacity: 0; }
.acw .v-reply.ringing .ph { animation: ac-shake .5s ease-in-out infinite; }
.acw .v-reply.ringing .ring { animation: ac-ripple 1.4s var(--ease) infinite; }
.acw .v-reply.ringing .r2 { animation-delay: .7s; }
@keyframes ac-ripple { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(2.3); opacity: 0; } }
@keyframes ac-shake { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-9deg); } 75% { transform: rotate(9deg); } }
.acw .v-reply.replied .call { transform: translateY(-30px) scale(.62); }
.acw .v-reply .miss { position: absolute; left: 50%; top: calc(30% + 52px); transform: translateX(-50%); transition: transform .6s var(--spring), opacity .4s; }
.acw .v-reply.replied .miss { transform: translate(-50%, -40px) scale(.92); }
.acw .v-reply .timer { position: absolute; right: 8px; top: 4%; opacity: 0; transform: scale(.8); transition: opacity .4s, transform .5s var(--spring); }
.acw .v-reply.counting .timer { opacity: 1; transform: none; }
.acw .bub { text-wrap: pretty; position: absolute; left: 8px; right: 8px; top: calc(30% + 60px); padding: 14px 16px; border-radius: 16px 16px 16px 5px; font-size: 14px; line-height: 1.38; background: var(--dk); color: #f6f5f2; opacity: 0; transform: translateY(18px) scale(.92); transform-origin: 0 100%; transition: opacity .35s, transform .7s var(--spring); }
.acw .v-reply.replied .bub { opacity: 1; transform: none; }

/* timeline: event → wait → action (vouch, host) */
.acw .v-line { display: flex; flex-direction: column; justify-content: center; gap: 10px; padding: 0 8px; }
.acw .row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 13px; background: #fff; border: 1px solid rgba(22,20,18,.08); font-size: 13.5px; }
.acw .row .ic { width: 30px; height: 30px; flex: none; border-radius: 9px; background: var(--tone); display: grid; place-items: center; color: var(--dk); }
.acw .row .ic .mk { width: 16px; height: 16px; }
.acw .row .tx { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.acw .row .tx small { color: var(--dk-3); font-size: 12px; }
.acw .row .tk { margin-left: auto; transform: scale(0); transition: transform .45s var(--spring); }
.acw .row.ok .tk { transform: scale(1); }
.acw .row.dk { background: var(--dk); color: #f6f5f2; border-color: var(--dk); }
.acw .row.dk .ic { background: rgba(255,255,255,.12); color: #fff; }
.acw .row.dk .tx small { color: rgba(246,245,242,.6); }
.acw .wait { align-self: center; display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--dk-2); }
.acw .wait::before, .acw .wait::after { content: ''; width: 1px; height: 14px; background: rgba(22,20,18,.25); }
.acw .wait { flex-direction: column; gap: 4px; }
.acw .ac-cta { display: inline-flex; align-self: flex-start; margin-top: 8px; height: 30px; align-items: center; padding: 0 12px; border-radius: 15px; background: #fff; color: var(--dk); font-size: 12.5px; font-weight: 500; transition: transform .3s var(--spring); }
.acw .ac-cta.tap { transform: scale(.92); }

/* sift · sort mails into lanes */
.acw .v-sort { display: flex; flex-direction: column; justify-content: center; gap: 22px; padding: 0 8px; }
.acw .inq { position: relative; height: 54px; }
.acw .inq .mail { position: absolute; left: 0; right: 0; top: 0; display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 13px; border-radius: 12px; background: #fff; border: 1px solid rgba(22,20,18,.08); font-size: 13px; opacity: 0; transform: translateY(-14px); transition: opacity .3s, transform .55s var(--spring); }
.acw .inq .mail.on { opacity: 1; transform: none; }
.acw .inq .mail.gone { opacity: 0; transform: translateY(40px) scale(.9); transition: opacity .35s, transform .5s var(--ease); }
.acw .mail .tg { margin-left: auto; font-size: 11.5px; padding: 3px 9px; border-radius: 10px; background: var(--tone); color: var(--dk); opacity: 0; transform: scale(.7); transition: opacity .25s, transform .4s var(--spring); white-space: nowrap; }
.acw .mail.tagd .tg { opacity: 1; transform: none; }
.acw .mail .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acw .lanes { display: flex; flex-direction: column; gap: 14px; padding: 4px 4px 0; }
.acw .lane { display: grid; grid-template-columns: 1fr auto; align-items: baseline; row-gap: 8px; }
.acw .lane span { font-size: 13.5px; color: var(--dk); }
.acw .lane b { font-weight: 500; font-size: 15px; font-variant-numeric: tabular-nums; transition: color .3s; }
.acw .lane .bar { grid-column: 1 / -1; height: 3px; border-radius: 2px; background: rgba(22,20,18,.09); position: relative; overflow: hidden; }
.acw .lane .bar i { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: rgba(22,20,18,.7); border-radius: 2px; transition: width .6s var(--spring); }
.acw .lane:first-child .bar i { background: var(--acc); }
.acw .lane.hit b { color: var(--acc); }

/* ember · who's gone quiet */
.acw .v-quiet { display: flex; flex-direction: column; justify-content: center; gap: 7px; padding: 0 8px; }
.acw .cl { white-space: nowrap; display: flex; align-items: center; gap: 11px; height: 46px; padding: 0 13px; border-radius: 12px; background: #fff; border: 1px solid rgba(22,20,18,.08); font-size: 13.5px; transition: opacity .5s, background .5s, transform .5s var(--spring); }
.acw .cl .av { background: var(--tone); color: var(--dk); width: 26px; height: 26px; font-size: 11px; }
.acw .cl small { color: var(--dk-3); font-size: 12px; margin-left: auto; transition: color .4s; }
.acw .cl.dim { opacity: .42; }
.acw .cl.pick { transform: translateX(6px); }
.acw .cl.pick small { color: var(--acc); }
.acw .grp { align-self: flex-start; margin-top: 8px; }

/* photo card stages */
.acw .v-photo { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 10px; padding: 0 4px; }
.acw .v-photo.bottom { justify-content: flex-end; }
.acw .stars { display: flex; gap: 5px; }
.acw .stars i { width: 22px; height: 22px; background: #f5b301; clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); transform: scale(0); transition: transform .45s var(--spring); }
.acw .stars i.on { transform: scale(1); }
.acw .rv { align-self: stretch; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.94); color: var(--dk); box-shadow: 0 14px 34px rgba(0,0,0,.2); display: flex; flex-direction: column; gap: 9px; font-size: 14px; line-height: 1.38; }
.acw .rv .g { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--dk-2); }
.acw .rv .g b { width: 18px; height: 18px; border-radius: 50%; background: conic-gradient(#ea4335 0 25%, #fbbc05 0 50%, #34a853 0 75%, #4285f4 0); }
.acw .rating { display: flex; align-items: baseline; gap: 8px; padding: 10px 16px; border-radius: 14px; background: rgba(255,255,255,.94); color: var(--dk); box-shadow: 0 14px 34px rgba(0,0,0,.2); }
.acw .rating b { font-size: 30px; font-weight: 400; letter-spacing: -.03em; font-variant-numeric: tabular-nums; display: inline-block; transition: transform .5s var(--spring); }
.acw .rating b.up { transform: scale(1.12); }
.acw .rating span { font-size: 12.5px; color: var(--dk-2); }
.acw .card {
  align-self: stretch; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.94); color: var(--dk);
  box-shadow: 0 14px 34px rgba(0,0,0,.2); display: flex; flex-direction: column; gap: 8px; font-size: 13.5px;
}
.acw .card .hd { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--dk-2); }
.acw .card .hd .chip { height: 24px; font-size: 11.5px; padding: 0 9px; }
.acw .card p { line-height: 1.38; }
.acw .card .kv { display: flex; justify-content: space-between; gap: 10px; padding-top: 7px; border-top: 1px solid rgba(22,20,18,.08); }
.acw .card .kv span { color: var(--dk-3); }
.acw .card .kv b { font-weight: 500; }
.acw .card .acts { display: flex; gap: 6px; }
.acw .card .acts .chip { height: 28px; }
.acw .card .acts .chip.dk { font-family: var(--sans); }
.acw .src { display: flex; gap: 6px; flex-wrap: wrap; }
.acw .src .chip { height: 26px; font-size: 11.5px; background: rgba(255,255,255,.9); border-color: transparent; }
.acw .money { display: flex; flex-direction: column; align-items: flex-start; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.94); color: var(--dk); box-shadow: 0 14px 34px rgba(0,0,0,.2); }
.acw .money b { font-size: 30px; font-weight: 400; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.acw .money span { font-size: 12.5px; color: var(--dk-2); }
.acw .bk { display: flex; flex-direction: column; gap: 6px; align-self: stretch; }
.acw .bk .chip { align-self: flex-start; background: rgba(255,255,255,.94); border-color: transparent; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .acw .deck { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 calc(var(--gut) * -1); padding: 0 var(--gut); scrollbar-width: none; }
  .acw .deck::-webkit-scrollbar { display: none; }
  .acw .cd { flex: 0 0 min(82%, 360px); height: 500px; scroll-snap-align: center; }
}
@media (max-width: 600px) {
  .acw .tabs { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scroll-snap-type: x proximity; margin-left: calc(var(--gut) * -1); margin-right: calc(var(--gut) * -1); padding: 0 var(--gut); scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }
  .acw .tabs::-webkit-scrollbar { display: none; }
  .acw .tab { flex: none; height: 42px; padding: 0 16px; scroll-snap-align: start; }
  .acw .tab img { height: 14px; }
}
/* phones: keep a card inside the visible Safari area */
@media (max-width: 960px) { .acw .cd { height: min(500px, 74svh); } }

/* tabs = "Underline" (2026-10-23): plain logos on one line, a red bar runs under the active one */
.acw .tabs { gap: clamp(22px, 3.4vw, 54px); border-bottom: 1px solid var(--ac-line); padding: 0 10px; width: max-content; max-width: 100%; }
.acw .tab { border: 0; background: none !important; padding: 0 2px; height: 54px; border-radius: 0; }
.acw .tab img { height: 17px; opacity: .35; }
.acw .tab.on img { opacity: 1; }
.acw .tab i { left: 0; right: 0; bottom: -1px; height: 2px; background: var(--red); }
.acw .tabs.held .tab.on i { opacity: 1; transform: scaleX(1) !important; }
@media (max-width: 760px) { .acw .tabs { width: auto; padding: 0 var(--gut); } .acw .tab { height: 48px; flex: none; } }

/* phones: stepper instead of the logo row (one product, ← →, "01 / 05 · Missed calls") */
.acw .ac-step { display: none; }
@media (max-width: 760px) {
  .acw .tabs { display: none; }
  .acw .ac-step { display: grid; grid-template-columns: 44px 1fr 44px; align-items: center; gap: 8px; margin: 0 auto 26px; padding-bottom: 14px; border-bottom: 1px solid var(--ac-line); }
  .acw .ac-step-b { width: 44px; height: 44px; font-size: 20px; color: var(--paper); transition: color .3s, transform .4s var(--ease); }
  .acw .ac-step-b:active { transform: scale(.9); color: var(--red); }
  .acw .ac-step-now { display: grid; justify-items: center; gap: 8px; }
  .acw .ac-step-logo img { height: 22px; width: auto; display: block; }
  .acw .ac-step-logo img.inv { filter: invert(1); }
  .acw .ac-step-logo img.mono { filter: grayscale(1) brightness(1.9); }
  .acw .ac-step small { font-size: 12px; color: var(--ac-ink-3); }
}
