/* Cloud home, Nov 29 2026: the council as a group thread (#hcl-os) and a
   phone pass over every section. Loaded after home-cloud.css and pro.css;
   pro rules start with `:root.hpro`, so overrides here name both. */

/* ============================ council thread ============================ */
.hcl .cr .bezel-in { display: flex; flex-direction: column; padding: 0; }
.hcl .cr-top { display: flex; align-items: center; gap: 14px; padding: 14px 14px 14px 18px; border-bottom: 1px solid var(--line); }
.hcl .cr-top .cn-name { display: flex; align-items: center; gap: 11px; margin-right: auto; min-width: 0; }
.hcl .cr-top .cn-name > span:last-child { display: grid; gap: 3px; min-width: 0; }
.hcl .cr-top .cn-name b { font: 600 14.5px/1.1 var(--f-body); }
.hcl .cr-top .cn-name small { font: 400 12px/1.1 var(--f-mono); color: var(--ink-3); white-space: nowrap; }
.hcl .cr-seats { display: flex; gap: 5px; }
.hcl .cr-seat { position: relative; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--fill-2); color: var(--ink-3); transition: background .35s var(--ease), color .35s var(--ease), transform .35s var(--ease); }
.hcl .cr-seat svg { width: 15px; height: 15px; }
.hcl .cr-seat em { position: absolute; top: calc(100% + 6px); left: 50%; translate: -50% 0; font: 500 10.5px/1 var(--f-mono); font-style: normal; color: var(--accent); white-space: nowrap; opacity: 0; transition: opacity .25s; pointer-events: none; }
.hcl .cr-seat.in { background: var(--ink); color: var(--bg); }
.hcl .cr-seat.on { background: var(--accent); color: #fff; transform: translateY(-2px); }
.hcl .cr-seat.on em { opacity: 1; }
.hcl .cr .tr-replay { flex: none; }

.hcl .cr-stages { display: flex; gap: 4px; padding: 12px 14px 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }
.hcl .cr-stages::-webkit-scrollbar { display: none; }
.hcl .cr-stage { flex: 1 0 auto; display: flex; flex-direction: column; gap: 9px; min-width: 76px; padding: 8px 6px 0; border: 0; border-radius: 8px 8px 0 0; background: none; font: 500 12.5px/1.2 var(--f-body); color: var(--ink-3); text-align: left; white-space: nowrap; scroll-snap-align: start; transition: color .2s; }
.hcl .cr-stage i { position: relative; display: block; height: 2px; border-radius: 2px; background: var(--line-2); overflow: hidden; }
.hcl .cr-stage i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.hcl .cr-stage.past i::after { transform: scaleX(1); background: var(--ink-3); }
.hcl .cr-stage.run i::after { animation: hcl-cr-fill var(--dur, 6s) linear forwards; }
.hcl .cr.done .cr-stage[aria-selected="true"] i::after, .hcl .cr-stage[aria-selected="true"]:not(.run) i::after { transform: scaleX(1); }
.hcl .cr-stage[aria-selected="true"] { color: var(--ink); font-weight: 600; }
.hcl .cr-stage:hover { color: var(--ink); }
@keyframes hcl-cr-fill { to { transform: scaleX(1); } }

.hcl .cr-thread { display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; height: 404px; padding: 22px 18px 18px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 72px); mask-image: linear-gradient(transparent, #000 72px); }
.hcl .cr-thread > * { flex: none; }
.hcl .cr-div { display: flex; align-items: center; gap: 12px; margin-top: 6px; font: 500 11.5px/1 var(--f-mono); color: var(--ink-3); }
.hcl .cr-div::before, .hcl .cr-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.hcl .cr-div.is-new { animation: hcl-cr-in .45s var(--ease) both; }
.hcl .cr-you { align-self: flex-end; max-width: 84%; padding: 11px 15px; border-radius: 16px 16px 4px 16px; background: var(--ink); color: var(--bg); }
.hcl .cr-you p { margin: 0; font: 500 14.5px/1.45 var(--f-body); text-wrap: pretty; }
.hcl .cr-msg { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 10px; align-items: start; max-width: 90%; }
.hcl .cr-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: var(--bg); }
.hcl .cr-av svg { width: 16px; height: 16px; }
.hcl .cr-msg.is-typing .cr-av { background: var(--accent); color: #fff; }
.hcl .cr-b { justify-self: start; min-width: 0; padding: 9px 14px 10px; border-radius: 4px 16px 16px 16px; background: var(--fill); box-shadow: inset 0 0 0 1px var(--line); }
.hcl .cr-who { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; }
.hcl .cr-who b { font: 600 13px/1.3 var(--f-body); }
.hcl .cr-who small { font-size: 12px; line-height: 1.3; color: var(--ink-3); }
.hcl .cr-b p { margin: 3px 0 0; font-size: 14px; line-height: 1.45; color: var(--ink-2); }
.hcl .cr-dots { display: flex; gap: 4px; height: 19px; align-items: center; }
.hcl .cr-dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--ink-3); animation: hcl-cr-dot 1s var(--ease) infinite; }
.hcl .cr-dots i:nth-child(2) { animation-delay: .15s; } .hcl .cr-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes hcl-cr-dot { 50% { opacity: .25; transform: translateY(-2px); } }
.hcl .cr-msg.is-new, .hcl .cr-you.is-new, .hcl .cr-msg.is-typing { animation: hcl-cr-in .45s var(--ease) both; }
@keyframes hcl-cr-in { from { opacity: 0; transform: translateY(10px); } }

.hcl .cr-out { display: flex; align-items: center; gap: 14px; min-height: 62px; padding: 12px 18px; border-top: 1px solid var(--line); background: var(--bg-2); }
.hcl .cr-out-l { flex: none; font: 500 12px/1 var(--f-mono); color: var(--ink-3); }
.hcl .cr-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.hcl .cr-chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 8px; background: var(--surface); box-shadow: inset 0 0 0 1px var(--line-2); font: 400 12.5px/1 var(--f-mono); color: var(--ink-2); white-space: nowrap; animation: hcl-cr-in .4s var(--ease) both; }
.hcl .cr-chip:nth-child(2) { animation-delay: .08s; } .hcl .cr-chip:nth-child(3) { animation-delay: .16s; }
.hcl .cr-chip b { font-weight: 600; color: var(--ink); }
.hcl .cr-chip.is-ok b { color: var(--ok); }
.hcl .cr-chip.is-ok::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

@media (max-width: 640px) {
  .hcl .cr-top { gap: 10px; padding: 12px; }
  .hcl .cr-top .cn-name small { display: none; }
  .hcl .cr-seats { gap: 4px; }
  .hcl .cr-seat { width: 26px; height: 26px; border-radius: 8px; }
  .hcl .cr-seat svg { width: 13px; height: 13px; }
  .hcl .cr-seat em { display: none; }
  .hcl .cr .tr-replay { width: 32px; padding: 0; justify-content: center; }
  .hcl .cr .tr-replay span { display: none; }
  .hcl .cr-stages { padding: 10px 10px 0; }
  .hcl .cr-thread { height: 440px; padding: 18px 12px 14px; }
  .hcl .cr-you, .hcl .cr-msg { max-width: 100%; }
  .hcl .cr-out { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px; }
}
@media (max-width: 400px) { .hcl .cr-top .cn-name > span:last-child { display: none; } }
@media (prefers-reduced-motion: reduce) {
  .hcl .cr-msg, .hcl .cr-you, .hcl .cr-chip, .hcl .cr-dots i { animation: none !important; }
}

/* ============================ phones ============================ */
@media (max-width: 640px) {
  /* opening: the rolling word gets a line of its own so "game server" fits */
  .hcl .ro-l1, :root.hpro .hcl .ro-l1 { display: block; }
  .hcl .ro-word, :root.hpro .hcl .ro-word { display: block; width: auto !important; margin: -.04em 0 0; }
  .hcl .ro-h, :root.hpro .hcl .ro-h { font-size: clamp(38px, 11vw, 50px); line-height: 1.02; }
  :root.hpro .hcl .ro { margin-top: 64px; }
  :root.hpro .hcl .ro > .wrap:first-child { padding: 44px 20px 0; }
  :root.hpro .hcl .ro-sub { margin-top: 18px; font-size: 15.5px; line-height: 1.55; }
  :root.hpro .hcl .ro-cta { margin-top: 24px; }
  :root.hpro .hcl .ro-cta .btn { flex: 1 1 0; min-width: 0; height: 44px; padding: 0 12px; font-size: 14.5px; }
  :root.hpro .hcl .ro-rise { padding: 32px 12px 0; }

  /* "works with": label on its own line, logos in one tight row */
  :root.hpro .hcl .pro-strip { flex-direction: column; gap: 14px; padding-top: 32px; }
  :root.hpro .hcl .pro-strip-l { flex-wrap: nowrap; gap: 24px; }
  :root.hpro .hcl .pro-strip-l li { font-size: 14px; white-space: nowrap; }

  /* section rhythm: half the desktop air */
  .hcl .sec, .hcl .hdk, :root.hpro .hcl .sec, :root.hpro .hcl .hdk { padding-block: 64px; }
  .hcl .head, :root.hpro .hcl .head { margin-bottom: 26px; }
  .hcl .h2, .hcl .hdk-h, :root.hpro .hcl .h2, :root.hpro .hcl .hdk-h { font-size: clamp(28px, 8.4vw, 34px); }
  .hcl .lede, .hcl .hdk-sub, :root.hpro .hcl .lede, :root.hpro .hcl .hdk-sub { font-size: 15.5px; line-height: 1.6; }

  /* catalogue: stacked cards (owner's pick), but compact ones */
  .hcl .bento, :root.hpro .hcl .bento { gap: 10px; grid-auto-rows: auto; }
  .hcl .tile, :root.hpro .hcl .tile { padding: 18px; }
  .hcl .tile .viz { min-height: 0; margin-bottom: 16px; gap: 10px; }
  .hcl .viz .big, :root.hpro .hcl .viz .big { font-size: 40px; }
  .hcl .tile--wide .viz { flex-direction: column; align-items: stretch; }
  .hcl .viz .wave { height: 46px; }
  .hcl .viz .apps { align-content: flex-start; }
  .hcl .viz .apps i { padding: 7px 10px; font-size: 11.5px; }
  .hcl .viz .dots { grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 6px; max-width: 280px; }
  .hcl .viz .dots i { width: auto; aspect-ratio: 1; height: auto; }
  .hcl .tile--os, :root.hpro .hcl .tile--os { padding: 22px; }
  .hcl .tile--os .tile-name, :root.hpro .hcl .tile--os .tile-name { font-size: 32px; }
  .hcl .tile--os .viz-os, :root.hpro .hcl .tile--os .viz-os { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-block: 18px 14px; }
  .hcl .tile--os .viz-os i, :root.hpro .hcl .tile--os .viz-os i { min-height: 0; padding: 9px 10px; border-radius: 9px; }
  .hcl .tile--os .viz-os span, :root.hpro .hcl .tile--os .viz-os span { display: none; }

  /* Business OS plans: three prices in one row instead of three cards */
  .hcl .plans, :root.hpro .hcl .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .hcl .plans > div, :root.hpro .hcl .plans > div { padding: 12px; border-radius: 12px; }
  .hcl .plans strong, :root.hpro .hcl .plans strong { font-size: 12.5px; }
  .hcl .plans b, :root.hpro .hcl .plans b { margin-top: 8px; font-size: 24px; }
  .hcl .plans span { display: none; }
  .hcl .os .btn { width: 100%; }

  /* the deck's kind switcher scrolls sideways with a fade, never clipped */
  .hcl .hdk-tabs, .hcl .pd-tabs { -webkit-mask-image: linear-gradient(90deg, #000 85%, transparent); mask-image: linear-gradient(90deg, #000 85%, transparent); }

  /* basics: two short columns of six instead of one long list */
  .hcl .basics, :root.hpro .hcl .basics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
  .hcl .basic h3, :root.hpro .hcl .basic h3 { font-size: 15px; }
  .hcl .basic p, :root.hpro .hcl .basic p { font-size: 13.5px; }
}
@media (max-width: 380px) {
  .hcl .basics, :root.hpro .hcl .basics { grid-template-columns: minmax(0, 1fr); }
}
