/* ===== Connect-page styles ===== */

:root {
  --pod-community:  #1d9e75;
  --pod-enterprise: #2d5cf7;
  --pod-investor:   #6e3ad6;
  --bubble-ai:      var(--paper);
  --bubble-user:    color-mix(in srgb, var(--accent) 12%, var(--paper));
}

.shell.connect { max-width: 1320px; margin: 0 auto; }

/* ===== Hero ===== */
.c-hero {
  padding: 56px 0 40px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 32px;
}
.c-hero .eyebrow { margin-bottom: 26px; }
.c-hero h1 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: clamp(48px, 8vw, 120px);
  line-height: 0.95;
  letter-spacing: -0.025em;
  margin-bottom: 22px;
  max-width: 14ch;
}
.c-hero h1 em {
  font-style: italic;
  background: linear-gradient(92deg, var(--accent) 0%, var(--accent-2) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  padding-right: 0.12em;
}
.c-hero h1 .strike {
  color: var(--muted);
  font-style: italic;
  position: relative;
  padding: 0 0.05em;
}
.c-hero h1 .strike::after {
  content: ''; position: absolute;
  left: -2%; right: -2%; top: 56%;
  height: 5px; background: var(--accent);
  transform: rotate(-2deg) skewX(-8deg);
}
.c-hero .lede {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.45;
  color: var(--fg-soft);
  max-width: 52ch;
}
.c-hero .meta-stack {
  display: grid;
  gap: 8px;
  text-align: right;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.c-hero .meta-stack b { color: var(--fg); font-weight: 500; }
.c-hero .meta-stack .live {
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
}
.c-hero .meta-stack .live::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 30%, transparent);
  animation: pulse 2s ease-in-out infinite;
}
@media (max-width: 760px) {
  .c-hero { grid-template-columns: 1fr; padding: 36px 0 28px; }
  .c-hero .meta-stack { text-align: left; justify-items: start; }
}

/* partners strip — small logo wall */
.partners-strip {
  margin-top: 20px;
  display: flex; flex-wrap: wrap;
  gap: 18px 28px;
  align-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
}
.partners-strip .pl {
  color: var(--fg);
  border: 1px solid var(--line);
  padding: 6px 12px;
  background: var(--paper);
}
.partners-strip .pl b { color: var(--accent); }

/* "no email" strip */
.no-email-strip {
  margin-top: 22px;
  padding: 16px 20px;
  background: color-mix(in srgb, var(--accent-2) 8%, var(--paper));
  border-left: 3px solid var(--accent-2);
  font-size: 14px;
  line-height: 1.55;
  color: var(--fg-soft);
  max-width: 78ch;
}
.no-email-strip b { color: var(--fg); font-weight: 500; }
.no-email-strip code {
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  background: var(--bg);
  padding: 1px 6px;
  border: 1px solid var(--hairline);
}

/* ===== Two-column grid ===== */
.c-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 28px;
  margin-top: 32px;
  align-items: start;
}
@media (max-width: 980px) {
  .c-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ===== ActionBoard chat shell ===== */
.ab {
  background: var(--paper);
  border: 1px solid var(--line);
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-height: 640px;
}
.ab-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.ab-head .badge {
  width: 32px; height: 32px;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  display: grid; place-items: center;
  color: #fff;
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-size: 18px;
}
.ab-head .title {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--fg);
}
.ab-head .title .sub {
  color: var(--muted);
  margin-left: 8px;
  letter-spacing: 0.16em;
}
.ab-head .status {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: inline-flex; align-items: center; gap: 6px;
}
.ab-head .status::before {
  content: ''; width: 6px; height: 6px;
  border-radius: 50%; background: var(--pod-community);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--pod-community) 30%, transparent);
  animation: pulse 2s ease-in-out infinite;
}

.ab-feed {
  padding: 22px 22px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 72vh;
  min-height: 440px;
}

/* messages */
.msg {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
  max-width: 94%;
  animation: msgIn 0.32s cubic-bezier(.2,.7,.2,1);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.msg.user {
  justify-self: end;
  grid-template-columns: 1fr 32px;
}
.msg .av {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  font-family: 'Geist Mono', monospace;
  font-size: 9px; color: #fff;
  background: var(--fg);
}
.msg.ai .av {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  font-family: 'Instrument Serif', serif;
  font-style: italic; font-size: 16px;
}
.msg .bubble {
  background: var(--bubble-ai);
  border: 1px solid var(--hairline);
  padding: 12px 14px;
  font-size: 14px; line-height: 1.55;
  color: var(--fg);
}
.msg.user .bubble {
  background: var(--bubble-user);
  border-color: color-mix(in srgb, var(--accent) 30%, transparent);
}
.msg .bubble .from {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  display: block;
  margin-bottom: 4px;
}
.msg .bubble em {
  font-family: 'Instrument Serif', serif;
  font-style: italic; color: var(--accent);
}
.msg .bubble b { color: var(--fg); font-weight: 500; }
.msg .bubble a { color: var(--accent); }

/* typing dots */
.typing { display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; }
.typing span {
  width: 5px; height: 5px;
  background: var(--muted); border-radius: 50%;
  animation: bob 1.2s infinite ease-in-out;
}
.typing span:nth-child(2) { animation-delay: 0.15s; }
.typing span:nth-child(3) { animation-delay: 0.30s; }
@keyframes bob {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* chips */
.choices {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin-top: 10px;
}
.choices .choice {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--fg);
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}
.choices .choice:hover {
  border-color: var(--fg);
  background: var(--fg); color: var(--bg);
}
.choices .choice .dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--c, var(--accent));
  margin-right: 8px;
  vertical-align: middle;
}

/* inline input inside a bubble */
.inline-input {
  margin-top: 12px;
  display: flex; gap: 6px;
}
.inline-input input {
  flex: 1;
  font-family: 'Geist Mono', monospace;
  font-size: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  outline: 0;
}
.inline-input input:focus { border-color: var(--accent); }
.inline-input button {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 0 16px;
  background: var(--fg);
  color: var(--bg);
  border: none; cursor: pointer;
  transition: background 0.18s ease;
}
.inline-input button:hover { background: var(--accent); }

/* ActionList card */
.actionlist {
  margin-top: 4px;
  background: var(--bg);
  border: 1px solid var(--fg);
  box-shadow: 8px 8px 0 0 color-mix(in srgb, var(--c) 30%, transparent);
  overflow: hidden;
}
.actionlist .al-head {
  padding: 16px 18px 14px;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 12px;
}
.al-kicker {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 4px;
}
.al-title {
  font-family: 'Instrument Serif', serif;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg);
}
.al-title em { font-style: italic; color: var(--c); }
.al-id {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  line-height: 1.6;
}
.al-id b { color: var(--fg); }

.al-items {
  list-style: none;
  padding: 0; margin: 0;
}
.al-items li {
  display: grid;
  grid-template-columns: 26px 1fr auto;
  gap: 14px;
  align-items: start;
  padding: 14px 18px;
  border-bottom: 1px solid var(--hairline);
  cursor: pointer;
  transition: background 0.12s ease;
}
.al-items li:hover { background: var(--paper); }
.al-items li:last-child { border-bottom: 0; }
.al-items li.off { opacity: 0.45; }
.al-items li .check {
  width: 18px; height: 18px;
  border: 1.5px solid var(--fg);
  display: grid;
  place-items: center;
  margin-top: 2px;
  background: var(--bg);
}
.al-items li.on .check {
  background: var(--fg); color: var(--bg);
}
.al-items li.on .check::after {
  content: '✓';
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  line-height: 1;
}
.al-items li.off .check { border-color: var(--muted); }
.al-items li .body .name {
  font-size: 14px;
  font-weight: 500;
  color: var(--fg);
  margin-bottom: 2px;
}
.al-items li .body .desc {
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  max-width: 56ch;
}
.al-items li .meta {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
  align-self: start;
  margin-top: 4px;
  white-space: nowrap;
}

.al-foot {
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--paper);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.al-foot .summary {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.al-foot .summary b { color: var(--fg); }
.al-foot .row { display: flex; gap: 8px; }
.al-foot button {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 16px;
  border: 1px solid var(--fg);
  background: transparent;
  color: var(--fg);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.18s ease;
}
.al-foot button:hover { background: var(--fg); color: var(--bg); }
.al-foot button.primary { background: var(--fg); color: var(--bg); }
.al-foot button.primary:hover {
  background: var(--accent); border-color: var(--accent);
}
.al-foot button .arr { transition: transform 0.18s ease; }
.al-foot button:hover .arr { transform: translateX(3px); }

/* compose */
.ab-compose {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 14px 18px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.ab-compose input {
  font-family: 'Geist', sans-serif;
  font-size: 14px;
  padding: 12px 14px;
  background: var(--paper);
  border: 1px solid var(--line);
  color: var(--fg);
  outline: 0;
}
.ab-compose input::placeholder { color: var(--muted); font-style: italic; }
.ab-compose input:focus { border-color: var(--fg); }
.ab-compose button {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 12px 18px;
  background: var(--fg);
  color: var(--bg);
  border: none;
  cursor: pointer;
  transition: background 0.18s ease;
}
.ab-compose button:hover { background: var(--accent); }

/* receipt */
.receipt {
  margin-top: 4px;
  border: 1px dashed var(--accent);
  padding: 18px 20px;
  background: color-mix(in srgb, var(--accent) 6%, var(--paper));
}
.receipt .r-stamp {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 8px;
}
.receipt .r-title {
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 22px;
  line-height: 1.2;
  margin-bottom: 8px;
}
.receipt .r-id {
  font-family: 'Geist Mono', monospace;
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 10px;
}
.receipt .r-id b { color: var(--fg); }
.receipt p { font-size: 13px; line-height: 1.55; color: var(--fg-soft); }

/* ===== right rail pods ===== */
.pods {
  display: grid;
  gap: 14px;
  position: sticky;
  top: 24px;
}
.pod-label {
  font-family: 'Geist Mono', monospace;
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 2px;
}
.pod {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 18px 18px 16px;
  position: relative;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.pod:hover {
  transform: translateY(-1px);
  box-shadow: 4px 4px 0 0 color-mix(in srgb, var(--c) 30%, transparent);
  border-color: var(--c);
}
.pod .glyph {
  position: absolute;
  top: 14px; right: 16px;
  font-family: 'Instrument Serif', serif;
  font-style: italic;
  font-size: 32px;
  color: var(--c);
  line-height: 1;
}
.pod .pname {
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.20em;
  text-transform: uppercase;
  color: var(--c);
  margin-bottom: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pod .pname::before {
  content: ''; width: 8px; height: 8px;
  border-radius: 50%; background: var(--c);
}
.pod h4 {
  font-family: 'Instrument Serif', serif;
  font-weight: 400;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--fg);
  margin-bottom: 8px;
  max-width: 18ch;
}
.pod p {
  font-size: 13px;
  line-height: 1.5;
  color: var(--fg-soft);
  margin-bottom: 12px;
}
.pod .stats {
  display: flex;
  gap: 12px;
  font-family: 'Geist Mono', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}
.pod .stats b { color: var(--fg); }
.pod[data-pod="community"]  { --c: var(--pod-community); }
.pod[data-pod="enterprise"] { --c: var(--pod-enterprise); }
.pod[data-pod="investor"]   { --c: var(--pod-investor); }

/* ===== Brand override (Cloudscockpit.io) =====
   Slim banner row at top — replaces nav.top brand-mark + small caption */
.brand img.logo-img {
  height: 22px;
  width: auto;
  display: block;
  margin-right: 6px;
}
.brand .brand-name {
  font-family: 'Geist Mono', monospace;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.10em;
  text-transform: none;
}
.brand .brand-name .dot { color: var(--accent); }
