/* Homepage landing only. Article pages keep assets/article.css as-is.
   Shell is owned CSS. No x.ai stylesheets, fonts, SVGs, or marks. */

.page-landing {
  --max: 72rem;
  --landing-measure: 38rem;
  --bg: #fff;
  --text: #111110;
  --muted: #6f6e69;
  --border: #ebeae6;
  --shell: #f9f8f6;
  --shell-ink: #111110;
  --row-hover: #f1f0ec;
  --row-selected: #ecebe8;
  --bubble-in: #ebe9e6;
  --window-radius: 24px;
  background: #fff;
  color: var(--text);
}

.visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  inset-inline-start: 0.85rem;
  inset-block-start: -3rem;
  z-index: 80;
  padding: 0.45rem 0.7rem;
  background: var(--text);
  color: #fff;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: 4px;
}

.skip:focus {
  inset-block-start: 0.75rem;
  color: #fff;
}

.skip:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.page-landing .site-header {
  border-bottom: 0;
  background: #fff;
}

.page-landing .site-header-inner {
  max-width: 80rem;
  padding: 0.85rem 1.5rem;
  gap: 1.5rem;
}

.page-landing .header-nav {
  display: none;
  align-items: center;
  gap: 1.65rem;
  margin-inline-start: auto;
}

.page-landing .header-nav a {
  color: #1a1a18;
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: -0.01em;
}

.page-landing .header-nav a:hover {
  color: #111110;
}

.page-landing .header-nav a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

@media (min-width: 860px) {
  .page-landing .header-nav {
    display: flex;
  }
}

.page-landing main {
  max-width: 80rem;
  padding: 0 1.5rem 5rem;
}

.hero {
  max-inline-size: 42rem;
  margin: 0 auto;
  padding: 4.25rem 0 2.75rem;
  text-align: center;
}

.page-landing .hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2.35rem, 6vw, 4.15rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  color: #111110;
}

.page-landing .hero .lede {
  margin: 0 auto 1.6rem;
  max-inline-size: 36rem;
  color: #5c5c56;
  font-size: 1.125rem;
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-block-size: 3rem;
  padding: 0.7rem 1.25rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 550;
  font-size: 0.9375rem;
  line-height: 1;
  letter-spacing: -0.015em;
  text-decoration: none;
}

.cta--primary {
  background: #111110;
  color: #fff;
}

.cta--primary:hover {
  background: #2a2a28;
  color: #fff;
}

.cta--secondary {
  background: #fff;
  color: #111110;
  border-color: #d9d8d3;
}

.cta--secondary:hover {
  color: #111110;
  border-color: #111110;
}

.cta:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.example-convo {
  max-inline-size: 68rem;
  margin: 0 auto 4.5rem;
}

.bot-window {
  margin: 0;
  border: 1px solid #ecebe7;
  border-radius: var(--window-radius);
  background: var(--shell);
  box-shadow:
    0 1px 1px rgba(17, 17, 16, 0.04),
    0 16px 48px rgba(17, 17, 16, 0.08);
  overflow: hidden;
}

.bot-titlebar {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-block-size: 3.15rem;
  padding: 0.55rem 0.85rem;
  background: #fff;
  border-bottom: 1px solid #f0efeb;
}

.traffic {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding-inline: 0.25rem;
}

.traffic i {
  display: block;
  inline-size: 0.7rem;
  block-size: 0.7rem;
  border-radius: 50%;
}

.traffic .tl-r { background: #ff5f57; }
.traffic .tl-y { background: #febc2e; }
.traffic .tl-g { background: #28c840; }

.bot-tabs {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  min-inline-size: 0;
}

.bot-title-spacer {
  flex: 1;
}

.bot-tab-add {
  display: grid;
  place-items: center;
  inline-size: 1.7rem;
  block-size: 1.7rem;
  border-radius: 50%;
  color: #6f6e69;
  font-size: 1.1rem;
  line-height: 1;
}

.bot-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-block-size: 1.85rem;
  padding: 0.2rem 0.7rem 0.2rem 0.25rem;
  border-radius: 999px;
  background: #f3f2ee;
  color: #111110;
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: -0.015em;
}

.bot-tab .avatar {
  inline-size: 1.35rem;
  block-size: 1.35rem;
  font-size: 0.6rem;
}

.bot-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  height: 36rem;
  min-block-size: 0;
  background: var(--shell);
}

.bot-sidebar {
  display: none;
  flex-direction: column;
  min-inline-size: 0;
  min-block-size: 0;
  overflow: hidden;
  border-right: 1px solid #efece7;
  background: #fff;
}

.bot-search {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0.7rem 0.75rem 0.3rem;
  padding: 0.5rem 0.7rem;
  border-radius: 999px;
  background: #f4f3ef;
  color: #8a8984;
  font-size: 0.8125rem;
}

.bot-search svg {
  inline-size: 0.95rem;
  block-size: 0.95rem;
  flex: 0 0 auto;
}

.agent-list {
  flex: 1;
  min-block-size: 0;
  margin: 0;
  padding: 0.2rem 0.5rem 0.35rem;
  list-style: none;
  overflow: auto;
  scrollbar-width: none;
}

.agent-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0;
  padding: 0.55rem 0.55rem 0.55rem;
  border-radius: 14px;
}

.agent-row.is-selected {
  background: var(--row-selected);
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  border-radius: 50%;
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.av-orange { background: #f09020; }
.av-blue { background: #1c97f7; }
.av-purple { background: #6d5efc; }
.av-green { background: #1ea85a; }
.av-magenta { background: #c2186a; }
.av-gold { background: #e3b008; color: #111110; }
.av-ink { background: #111110; }

.agent-copy {
  min-inline-size: 0;
  flex: 1;
}

.agent-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
}

.agent-name {
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: #111110;
}

.agent-time {
  flex: 0 0 auto;
  font-size: 0.6875rem;
  color: #8a8984;
}

.agent-snip {
  margin: 0.15rem 0 0;
  color: #7a7974;
  font-size: 0.75rem;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-foot {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: auto;
  padding: 0.75rem 1rem 1rem;
  color: #3f3f3b;
  font-size: 0.8125rem;
  font-weight: 500;
}

.bot-pane {
  display: flex;
  flex-direction: column;
  min-inline-size: 0;
  min-block-size: 0;
  background: #fff;
}

.thread {
  flex: 1;
  min-block-size: 0;
  margin: 0;
  padding: 1.15rem 1.25rem 0.5rem;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.thread > li {
  margin: 0;
}

.turn-out {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.turn-in {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.msg {
  margin: 0;
  max-inline-size: min(36rem, 92%);
  padding: 0.7rem 0.95rem;
  border-radius: 16px;
  font-size: 0.9375rem;
  line-height: 1.5;
  letter-spacing: -0.011em;
}

.msg-in {
  background: var(--bubble-in);
  color: #161615;
}

.msg-out {
  background: #111110;
  color: #fff;
}

.msg-applied {
  background: #ecebe8;
}

.status-line {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.15rem 0;
  color: #8a8984;
  font-size: 0.75rem;
  font-weight: 500;
}

.status-dot {
  inline-size: 0.4rem;
  block-size: 0.4rem;
  border-radius: 50%;
  background: #c7c6c1;
}

.status-working {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0.1rem 0 0.15rem;
  padding: 0.25rem 0.6rem 0.25rem 0.3rem;
  border-radius: 999px;
  background: #f4f3ef;
  color: #3f3f3b;
  font-size: 0.75rem;
  font-weight: 550;
}

.status-working .spin {
  inline-size: 0.9rem;
  block-size: 0.9rem;
  border: 1.5px solid #d4d3ce;
  border-top-color: #111110;
  border-radius: 50%;
}

.tool-card {
  width: min(100%, 28rem);
  margin-top: 0.15rem;
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(120% 90% at 80% 0%, #dce6f2 0%, transparent 55%),
    linear-gradient(180deg, #d8dde6 0%, #c9cfd8 100%);
  padding: 1.1rem 1.1rem 1.2rem;
}

.tool-frame {
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 17, 16, 0.12);
  overflow: hidden;
}

.tool-frame-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.65rem;
  background: #f6f5f2;
  border-bottom: 1px solid #eee;
  color: #6f6e69;
  font-size: 0.6875rem;
}

.tool-rows {
  margin: 0;
  padding: 0.35rem 0;
  list-style: none;
}

.tool-rows li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  padding: 0.45rem 0.75rem;
  font-size: 0.75rem;
  color: #3f3f3b;
}

.tool-rows li + li {
  border-top: 1px solid #f2f1ee;
}

.tool-swatch {
  inline-size: 0.55rem;
  block-size: 0.55rem;
  border-radius: 50%;
  flex: 0 0 auto;
}

.sw-ga { background: #f09020; }
.sw-gsc { background: #1c97f7; }
.sw-gtm { background: #25d874; }

.draft-card {
  width: min(100%, 24rem);
  margin-top: 0.2rem;
  border-radius: 14px;
  background: #f6f5f2;
  padding: 0.7rem 0.85rem;
}

.draft-card p {
  margin: 0 0 0.45rem;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #8a8984;
}

.draft-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.draft-card li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.28rem 0;
  font-size: 0.75rem;
  color: #3f3f3b;
  border-top: 1px solid #ebeae6;
}

.draft-card li:first-child {
  border-top: 0;
}

.react {
  margin: 0.25rem 0.15rem 0;
  color: #8a8984;
  font-size: 0.85rem;
}

.composer {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0.55rem 1rem 1rem;
  padding: 0.4rem 0.4rem 0.4rem 0.55rem;
  border: 1px solid #ecebe7;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(17, 17, 16, 0.04);
}

.composer-add {
  display: grid;
  place-items: center;
  inline-size: 1.85rem;
  block-size: 1.85rem;
  border-radius: 50%;
  color: #3f3f3b;
  font-size: 1.25rem;
  line-height: 1;
}

.composer-ph {
  flex: 1;
  min-inline-size: 0;
  color: #9a9994;
  font-size: 0.9375rem;
  letter-spacing: -0.015em;
}

.composer-mic {
  display: grid;
  place-items: center;
  inline-size: 2.35rem;
  block-size: 2.35rem;
  border-radius: 50%;
  background: #111110;
  color: #fff;
}

.composer-mic svg {
  inline-size: 1.05rem;
  block-size: 1.05rem;
}

@media (min-width: 860px) {
  .bot-body {
    grid-template-columns: 18.5rem minmax(0, 1fr);
    height: 34rem;
  }

  .bot-sidebar {
    display: flex;
  }

  .thread {
    padding: 1.35rem 1.6rem 0.6rem;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .thread > li {
    animation: landing-turn-in 0.45s ease both;
  }

  .thread > li:nth-child(1) { animation-delay: 0.04s; }
  .thread > li:nth-child(2) { animation-delay: 0.12s; }
  .thread > li:nth-child(3) { animation-delay: 0.2s; }
  .thread > li:nth-child(4) { animation-delay: 0.28s; }
  .thread > li:nth-child(5) { animation-delay: 0.36s; }
  .thread > li:nth-child(6) { animation-delay: 0.44s; }
  .thread > li:nth-child(7) { animation-delay: 0.52s; }
  .thread > li:nth-child(8) { animation-delay: 0.6s; }
  .thread > li:nth-child(9) { animation-delay: 0.68s; }
  .thread > li:nth-child(10) { animation-delay: 0.76s; }
  .thread > li:nth-child(11) { animation-delay: 0.84s; }
  .thread > li:nth-child(12) { animation-delay: 0.92s; }

  .status-working .spin {
    animation: landing-spin 0.8s linear infinite;
  }
}

@keyframes landing-turn-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes landing-spin {
  to { transform: rotate(360deg); }
}

.platforms {
  container-type: inline-size;
  max-inline-size: 52rem;
  margin: 0 auto;
  padding: 1.25rem 0 4.5rem;
  text-align: center;
}

.page-landing .platforms > h2 {
  margin: 0 0 0.65rem;
  padding-top: 0;
  border-top: 0;
  font-size: clamp(1.65rem, 3.4vw, 2.25rem);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 1.15;
}

.platforms-lede {
  margin: 0 auto 1.75rem;
  max-inline-size: 34rem;
  color: #5c5c56;
  font-size: 1.0625rem;
  line-height: 1.5;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9.75rem, 1fr));
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.platform-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-block-size: 7.5rem;
  padding: 1rem 0.7rem 0.95rem;
  border-radius: 18px;
  background: var(--shell);
  color: #111110;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 550;
  letter-spacing: -0.015em;
  line-height: 1.3;
}

.platform-grid a:hover {
  color: #111110;
  background: #f1f0ec;
}

.platform-grid a:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}

.platform-grid img {
  display: block;
  inline-size: 2.25rem;
  block-size: 2.25rem;
  object-fit: contain;
}

@container (inline-size > 36rem) {
  .platform-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

.page-landing .site-footer {
  max-width: 80rem;
  padding: 1.5rem 1.5rem 3rem;
}

@media (max-width: 520px) {
  .page-landing main {
    padding-block-start: 0;
  }

  .hero {
    padding-block-start: 2.5rem;
  }

  .page-landing .hero h1 {
    font-size: 2.05rem;
  }

  .bot-body {
    height: 30rem;
  }
}
