:root {
  --mono-black: #050505;
  --mono-white: #ffffff;
  --mono-ink: #111111;
  --mono-muted: #686868;
  --mono-faint: #f4f4f1;
  --mono-line: #d8d8d2;
  --mono-line-dark: #2a2a2a;
  --mono-dark-muted: #b8b8b8;
  --mono-dark-soft: #101010;
}

html {
  background: var(--mono-white);
  text-rendering: optimizeLegibility;
}

body {
  margin: 0;
  background: var(--mono-white) !important;
  color: var(--mono-ink) !important;
  font-family:
    ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, sans-serif !important;
  letter-spacing: 0 !important;
  -webkit-font-smoothing: antialiased;
}

body.product-chat,
body.chat-install-page {
  background: var(--mono-black) !important;
  color: var(--mono-white) !important;
}

* {
  box-sizing: border-box;
}

a {
  color: inherit;
  text-underline-offset: 3px;
}

a,
button,
.button,
.product-choice,
.card,
.panel,
.kpi,
.choice {
  transition:
    background-color 140ms ease,
    border-color 140ms ease,
    color 140ms ease,
    transform 140ms ease;
}

a:focus-visible,
button:focus-visible,
.button:focus-visible,
.product-choice:focus-visible,
.choice:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 4px !important;
}

.container,
.shell {
  width: min(1120px, 100% - 32px) !important;
}

header {
  border-bottom: 1px solid var(--mono-line);
}

body.product-chat header,
body.chat-install-page header {
  border-bottom-color: var(--mono-line-dark);
}

body > header,
.home-page header {
  display: flex !important;
  align-items: center;
  gap: 14px;
}

.thane-chat-shortcut {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  margin-left: auto;
  border: 1px solid currentColor;
  background: transparent;
  color: inherit;
  text-decoration: none;
}

nav .thane-chat-shortcut,
.nav .thane-chat-shortcut,
.top-links .thane-chat-shortcut {
  margin-left: 0;
}

.thane-chat-shortcut:hover {
  background: var(--mono-black);
  color: var(--mono-white) !important;
  transform: translateY(-1px);
}

.thane-chat-shortcut.floating {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 1000;
  margin-left: 0;
  background: var(--mono-white);
  color: var(--mono-black);
}

body.product-chat .thane-chat-shortcut:hover,
body.chat-install-page .thane-chat-shortcut:hover {
  background: var(--mono-white);
  color: var(--mono-black) !important;
}

.thane-chat-shortcut-icon {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.thane-chat-shortcut-icon circle {
  fill: currentColor;
  stroke: none;
}

.thane-chat-shortcut-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--mono-white);
  border-radius: 999px;
  background: #d91f2f;
  color: var(--mono-white);
  font-size: 11px;
  font-weight: 900;
  line-height: 16px;
  text-align: center;
}

body.product-chat .thane-chat-shortcut-badge,
body.chat-install-page .thane-chat-shortcut-badge {
  border-color: var(--mono-black);
}

.thane-chat-shortcut-badge[hidden] {
  display: none;
}

.brand-mark,
.brand img,
.product-logo {
  display: block;
  filter: none !important;
}

h1,
h2,
h3,
.tier,
.price,
.kpi-value,
.panel-stat {
  color: inherit !important;
  letter-spacing: 0 !important;
  text-wrap: balance;
}

h1 {
  font-weight: 900 !important;
}

.lead,
.meta,
.muted,
li,
.card p,
.card li,
.flow li,
.task-row span,
footer,
.choice p {
  color: var(--mono-muted) !important;
}

body.product-chat .lead,
body.product-chat .meta,
body.product-chat .muted,
body.product-chat li,
body.product-chat .card p,
body.product-chat .card li,
body.product-chat footer,
body.chat-install-page .lead,
body.chat-install-page .meta,
body.chat-install-page .muted,
body.chat-install-page p,
body.chat-install-page li,
body.chat-install-page footer {
  color: var(--mono-dark-muted) !important;
}

.hero,
.card,
.panel,
.kpi,
.flow,
.digest,
.task-row,
.product-choice,
.choice,
article {
  border: 1px solid var(--mono-line) !important;
  border-radius: 0 !important;
  background: var(--mono-white) !important;
  box-shadow: none !important;
}

.card {
  align-content: start !important;
  justify-items: start !important;
  margin: 0 !important;
  width: 100% !important;
}

.card .button {
  align-self: start !important;
  justify-self: start !important;
  text-align: left !important;
  width: fit-content !important;
}

body.product-chat .hero,
body.product-chat .card,
body.product-chat .panel,
body.product-chat .kpi,
body.product-chat .flow,
body.product-chat .terminal,
body.product-chat .product-choice,
body.chat-install-page .hero,
body.chat-install-page .card,
body.chat-install-page .panel,
body.chat-install-page .command,
body.chat-install-page .choice {
  border-color: var(--mono-line-dark) !important;
  background: var(--mono-dark-soft) !important;
  color: var(--mono-white) !important;
}

.hero {
  min-height: 58vh;
}

.product-choice,
.choice {
  min-height: 330px;
}

.product-choice:hover,
.choice:hover,
.card.featured,
.panel:hover,
.kpi:hover {
  transform: translateY(-2px);
  border-color: currentColor !important;
  box-shadow: none !important;
}

.button,
button {
  border: 1px solid var(--mono-black) !important;
  border-radius: 0 !important;
  background: var(--mono-black) !important;
  color: var(--mono-white) !important;
  box-shadow: none !important;
}

.button:hover,
button:hover {
  background: var(--mono-white) !important;
  color: var(--mono-black) !important;
  transform: translateY(-1px);
}

body.product-chat .button,
body.product-chat button,
body.chat-install-page .button,
body.chat-install-page button {
  border-color: var(--mono-white) !important;
  background: var(--mono-white) !important;
  color: var(--mono-black) !important;
}

body.product-chat .button:hover,
body.product-chat button:hover,
body.chat-install-page .button:hover,
body.chat-install-page button:hover {
  background: var(--mono-black) !important;
  color: var(--mono-white) !important;
}

.button.secondary,
.secondary,
.top-link,
.switcher a,
.pill {
  border: 1px solid currentColor !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

.button + .button {
  margin-left: 8px;
}

.switcher {
  border: 1px solid currentColor !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.switcher a {
  border: 0 !important;
}

.switcher a.active {
  background: var(--mono-black) !important;
  color: var(--mono-white) !important;
}

body.product-chat .switcher a.active,
body.chat-install-page .switcher a.active {
  background: var(--mono-white) !important;
  color: var(--mono-black) !important;
}

.product-tag,
.product-label,
.label,
.eyebrow {
  letter-spacing: 0.08em !important;
}

.eyebrow,
.product-tag,
.product-label,
.label {
  color: inherit !important;
}

.terminal,
.command {
  border: 1px solid currentColor !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: inherit !important;
  box-shadow: none !important;
}

pre,
code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace !important;
}

table,
.table {
  border-collapse: separate !important;
  border-spacing: 0;
  width: 100%;
  overflow: hidden;
  border: 1px solid currentColor;
  border-radius: 0;
}

th,
td {
  border-color: var(--mono-line) !important;
}

th {
  background: var(--mono-faint) !important;
  color: var(--mono-ink);
}

td,
th {
  padding: 11px 12px !important;
}

article:not(.card) {
  margin: 24px auto !important;
}

article h1 {
  font-size: clamp(2rem, 4vw, 3rem);
}

article p,
article li {
  line-height: 1.7;
}

footer {
  border-top: 1px solid currentColor;
  padding-top: 18px;
}

footer a,
nav a {
  color: inherit !important;
  font-weight: 800;
  text-decoration: none;
}

.home-page .shell {
  min-height: 100vh;
  width: 100% !important;
  padding: 0;
  grid-template-rows: auto 1fr auto;
}

.home-page header,
.home-page footer {
  width: min(1120px, 100% - 32px);
  margin: 0 auto;
}

.home-page header {
  justify-content: flex-start;
  padding: 22px 0;
}

.home-page main {
  align-content: stretch;
}

.home-page h1 {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.home-page .product-grid {
  min-height: calc(100vh - 170px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
}

.home-page .product-choice {
  border-left: 0 !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  padding: clamp(24px, 5vw, 72px);
  display: grid;
  align-content: space-between;
}

.home-page .product-choice.chat {
  background: var(--mono-black) !important;
  color: var(--mono-white) !important;
  border-color: var(--mono-black) !important;
}

.home-page .product-choice.ask {
  background: var(--mono-white) !important;
  color: var(--mono-black) !important;
}

.home-page .product-logo {
  width: min(260px, 70%);
}

.home-page .chat .product-logo {
  width: min(220px, 64%);
}

.home-page h2 {
  font-size: clamp(3rem, 8vw, 7.8rem) !important;
  line-height: 0.9;
}

.home-page p {
  max-width: 30ch;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.35;
}

.home-page .chat p {
  color: var(--mono-dark-muted) !important;
}

@media (max-width: 760px) {
  .container,
  .shell {
    width: min(100% - 24px, 560px) !important;
  }

  .button,
  button {
    width: fit-content;
  }

  .thane-chat-shortcut {
    width: 36px;
    height: 36px;
  }

  .button + .button {
    margin-left: 0;
    margin-top: 8px;
  }

  .home-page .shell {
    width: 100% !important;
  }

  .home-page header,
  .home-page footer {
    width: min(100% - 24px, 560px);
  }

  .home-page .product-grid {
    min-height: auto;
    grid-template-columns: 1fr;
  }

  .home-page .product-choice {
    min-height: 44vh;
  }

  table,
  .table {
    display: block;
    overflow-x: auto;
  }
}
