:root {
  color-scheme: dark;
  --bg: #0b0b0d;
  --text: #ededea;
  --muted: #a8a8b0;
  --line: rgba(255, 255, 255, 0.075);
  --accent: #8b93ff;
  --radius-sm: 6px;
  --container: 1200px;
  --peek: 210px; /* how much of the demo shows on the first screen */
  --font-sans: "Geist", ui-sans-serif, system-ui, sans-serif;
  --font-brand: "Inconsolata", ui-monospace, monospace;
  --font-mono: "Geist Mono", ui-monospace, monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: rgba(237, 237, 234, 0.35) transparent;
  /* The intro hides overflow; keep the gutter so content doesn't shift when the scrollbar returns. */
  scrollbar-gutter: stable;
  scroll-padding-top: 72px;
  scrollbar-width: thin;
  scroll-behavior: smooth;
}

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(237, 237, 234, 0.28);
}

::-webkit-scrollbar-thumb:hover {
  background: rgba(237, 237, 234, 0.45);
}

[hidden] {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-feature-settings: "cv11", "ss01";
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, p {
  margin: 0;
}

h1 {
  text-wrap: balance;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn--primary {
  background: var(--text);
  color: var(--bg);
}

.btn--primary:hover {
  background: rgba(237, 237, 234, 0.06);
  color: var(--text);
}

.btn:disabled {
  font-family: inherit;
  opacity: 0.45;
  cursor: not-allowed;
}

.btn--primary:disabled:hover {
  background: var(--text);
  color: var(--bg);
}

.btn--ghost {
  border-color: rgba(237, 237, 234, 0.3);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: rgba(237, 237, 234, 0.6);
  background: rgba(237, 237, 234, 0.06);
}

.modal {
  width: min(340px, calc(100% - 40px));
  margin: auto;
  padding: 36px 24px 24px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: #121214;
  color: var(--text);
  text-align: center;
}

.modal__close {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.modal__close:hover {
  background: rgba(237, 237, 234, 0.08);
  color: var(--text);
}

.modal__close svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.7);
}

.modal__title {
  font-size: 16px;
  line-height: 1.4;
}

.modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.modal__actions .btn {
  flex: 1;
  font-family: inherit;
  cursor: pointer;
}

/* Navigation: floats over the hero so the hero alone fills one screen */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  border-bottom: 1px solid transparent;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.nav--solid,
.nav--scrolled {
  border-bottom-color: rgba(255, 255, 255, 0.075);
  background: rgba(11, 11, 13, 0.85);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}

.nav__inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  height: 72px;
}

.nav--solid {
  position: sticky;
}

.nav__actions {
  grid-column: 3;
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Main links, with hover/focus dropdowns */
.nav__links {
  display: flex;
  align-items: center;
  gap: 2px;
}

.nav__link,
.menu__trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #c8c8cf;
  font: inherit;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.nav__link:hover,
.menu:hover .menu__trigger,
.menu:focus-within .menu__trigger {
  background: rgba(237, 237, 234, 0.06);
  color: var(--text);
}

.menu__trigger svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}

.menu:hover .menu__trigger svg,
.menu:focus-within .menu__trigger svg {
  transform: rotate(180deg);
}

.nav__inner {
  position: relative;
}

/* Three quarters of the nav's content width; top padding bridges the gap from the trigger so hover isn't lost */
.menu__panel {
  position: absolute;
  top: calc(50% + 16px);
  left: calc(24px + (100% - 48px) * 0.125);
  width: calc((100% - 48px) * 0.75);
  z-index: 20;
  padding-top: 10px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.menu:hover .menu__panel,
.menu:focus-within .menu__panel {
  visibility: visible;
  opacity: 1;
  transform: none;
}

.menu__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr);
  padding: 20px 0 30px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background: #121214;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55);
}

.menu__col {
  display: grid;
  align-content: start;
  gap: 2px;
  padding: 0 10px;
}

.menu__label {
  margin: 0 0 6px 8px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.menu__item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 8px;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  transition: background-color 0.15s ease;
}

a.menu__item:hover,
a.menu__item:focus-visible {
  background: rgba(237, 237, 234, 0.05);
}

.menu__icon {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  color: #c8c8cf;
}

.menu__icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.menu__text {
  display: grid;
  gap: 1px;
}

.menu__feature {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0 10px;
  color: var(--text);
  text-decoration: none;
}

.menu__feature img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 4px;
  border-radius: 10px;
  object-fit: cover;
  transition: opacity 0.15s ease;
}

.menu__feature:hover img {
  opacity: 0.85;
}

.menu__feature .menu__label {
  margin: 0;
}

.menu__feature-title {
  font-size: 15px;
  font-weight: 500;
  line-height: 1.4;
}

.menu__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
}

.menu__desc {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.menu__item--soon {
  cursor: default;
}

.menu__item--soon .menu__title,
.menu__item--soon .menu__icon {
  color: var(--muted);
}

.menu__soon {
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(237, 237, 234, 0.08);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 400;
  line-height: 16px;
}

@media (max-width: 960px) {
  .nav__links {
    display: none;
  }
}

.github {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: 4px;
  border-radius: 999px;
  color: var(--text);
  opacity: 0.85;
  transition: opacity 0.15s ease;
}

.github:hover {
  opacity: 1;
}

.brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.brand__logo {
  display: inline-block;
  width: 22px;
  height: 22px;
  margin-right: 7px;
  border-radius: 5px;
  vertical-align: -3px;
  transition: width 0.25s ease, margin 0.25s ease, opacity 0.25s ease;
}

.nav:not(.nav--solid):not(.nav--scrolled) .brand__logo {
  width: 0;
  margin-right: 0;
  opacity: 0;
}

.brand__by {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  white-space: nowrap;
}

.brand__by a {
  text-decoration: none;
  cursor: pointer;
  transition: color 0.15s ease;
}

.brand__by a:hover {
  color: #c8c8cf;
}

.nav__signup {
  display: none;
}

@media (max-width: 720px) {
  .nav__open {
    display: none;
  }

  .nav__signup {
    display: inline-flex;
  }
}

/* Below this width the logo would crowd "by Hopium Studio" against the Sign up button. */
@media (max-width: 419px) {
  .brand__logo {
    display: none;
  }
}

/* Mobile menu (built by nav.js) */
.nav__burger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  margin-right: -6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav__burger svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
}

@media (max-width: 960px) {
  .nav__burger {
    display: inline-flex;
  }
}

.mnav {
  position: fixed;
  inset: 0;
  z-index: 9;
  overflow-y: auto;
  padding: 88px 0 40px;
  background: var(--bg);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.2s ease, visibility 0.2s;
}

.mnav--open {
  visibility: visible;
  opacity: 1;
}

html.mnav-open,
html.mnav-open body {
  overflow: hidden;
}

html.mnav-open .ask {
  display: none;
}

.mnav__inner {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.mnav__list {
  display: grid;
}

.mnav__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 20px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  list-style: none;
}

.mnav__row::-webkit-details-marker {
  display: none;
}

.mnav__row svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.15s ease;
}

.mnav__group[open] .mnav__row svg {
  transform: rotate(180deg);
}

.mnav__sub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 4px 0 16px;
  border-bottom: 1px solid var(--line);
}

.mnav__col {
  display: grid;
  align-content: start;
  gap: 4px;
}

.mnav__group[open] .mnav__row {
  border-bottom-color: transparent;
}

.mnav__link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  color: #c8c8cf;
  font-size: 16px;
  text-decoration: none;
}

.mnav__link--soon {
  color: var(--muted);
}

/* Pinned to the bottom of the menu when there's room. */
.mnav__actions {
  display: grid;
  margin-top: auto;
  padding-top: 32px;
}

.mnav__actions .btn {
  height: 44px;
}

.mnav__feature {
  display: grid;
  gap: 8px;
  margin-top: 40px;
  color: var(--text);
  text-decoration: none;
}

.mnav__feature img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin-bottom: 4px;
  border-radius: 10px;
  object-fit: cover;
}

.mnav__feature-label {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mnav__feature-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.wordmark {
  font-family: var(--font-brand);
  font-size: 26px;
  line-height: 1;
  font-weight: 600;
  letter-spacing: -0.04em;
  color: #eeede9;
  text-decoration: none;
  white-space: nowrap;
}

/* Hero */
.hero {
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 72px 0 calc(var(--peek) + 72px);
  background:
    linear-gradient(180deg, transparent 60%, var(--bg) 100%),
    radial-gradient(ellipse at center, rgba(11, 11, 13, 0.75) 0%, rgba(11, 11, 13, 0.4) 70%),
    url("assets/hero.jpg") center / cover no-repeat,
    var(--bg);
}

.hero__content {
  max-width: 1089px;
  margin: 0 auto;
  text-align: center;
}

.hero__pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin: 0 0 28px;
  padding: 6px 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: #050506;
  color: #d4d4d8;
  font-family: var(--font-mono);
  font-size: 14px;
  line-height: 1.4;
}

.hero__pill-dot {
  flex: none;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #2383e2;
  animation: pill-blink 1.6s ease-in-out infinite;
}

@keyframes pill-blink {
  50% {
    opacity: 0.25;
  }
}

.hero__pill-copy {
  display: none;
}

@media (max-width: 720px) {
  .hero__pill {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero__pill-dot {
    animation: none;
  }
}

.hero__title {
  font-family: var(--font-brand);
  font-size: clamp(40px, 6vw, 72px);
  line-height: 1.04;
  font-weight: 600;
  letter-spacing: -0.03em;
}

@media (max-width: 720px) {
  .hero__title {
    font-size: 48px;
  }
}

.hero__lead {
  margin: 24px auto 0;
  max-width: 520px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 19px);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-top: 36px;
}

/* Entrance transition */
.reveal {
  animation: reveal 0.6s ease-out both;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    animation: none;
  }
}

@media (max-width: 720px) {
  :root {
    --peek: 0px;
  }

  .hero__actions {
    margin-top: 52px;
  }

  .hero {
    padding-bottom: 72px;
    background:
      linear-gradient(180deg, rgba(11, 11, 13, 0.3) 0%, rgba(11, 11, 13, 0.85) 70%, var(--bg) 100%),
      url("assets/hero.jpg") 65% center / cover no-repeat,
      var(--bg);
  }
}

/* Showcase */
.showcase {
  position: relative;
  margin-top: calc(-1 * var(--peek));
  padding: 0 0 120px;
}

.showcase .container {
  max-width: 1360px;
}

/* Live demo: the real app in an iframe */
.demo {
  position: relative;
  scroll-margin-top: 32px;
}

.demo__frame {
  color-scheme: dark;
  scrollbar-color: rgba(237, 237, 234, 0.35) transparent;
  scrollbar-width: thin;
  display: block;
  width: 100%;
  height: min(860px, 85svh);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  background: #121212;
}

.demo__frame::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

.demo__frame::-webkit-scrollbar-track {
  background: transparent;
}

.demo__frame::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(237, 237, 234, 0.28);
}

/* Sits on the frame's top-right corner, spilling past the edge; shown while the pointer is over the demo. */
.demo__fullscreen {
  position: absolute;
  top: 0;
  right: -16px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 14px 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: #1a1a1d;
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, 0.8);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%);
  transition: opacity 0.15s ease, background-color 0.15s ease;
}

.demo__fullscreen svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.demo:hover .demo__fullscreen,
.demo__fullscreen:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.demo__fullscreen:hover {
  background: #26262a;
}

.demo__fullscreen:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Touch screens have no hover, so the button stays visible. */
@media (hover: none) {
  .demo__fullscreen {
    opacity: 1;
    pointer-events: auto;
  }
}

@media (max-width: 720px) {
  .showcase {
    padding-bottom: 88px;
  }

  /* On phones the demo is a look-only preview (the app shows just Goals when embedded this narrow); Try Demo opens the real thing. */
  .demo__frame {
    height: 600px;
    pointer-events: none;
  }

  .demo__fullscreen {
    display: none;
  }
}

/* Landing sections below the demo */
.lsection {
  padding: 0 0 160px;
}

.lhead {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  align-items: last baseline;
  justify-content: space-between;
  gap: 16px 48px;
  margin-bottom: 56px;
}

.lhead__title {
  max-width: 600px;
  margin: 0;
  font-family: var(--font-brand);
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.lhead__lead {
  max-width: 420px;
  color: var(--muted);
  font-size: 16px;
  text-align: right;
}

/* Negative margin lets every column keep equal padding, so contents line up */
.caps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0 -24px;
}

.cap {
  display: flex;
  flex-direction: column;
  padding: 0 24px;
  border-left: 1px solid rgba(255, 255, 255, 0.075);
}

.cap:first-child {
  border-left: 0;
}

.cap__label {
  color: #6b6b73;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* Corner brackets frame each illustration */
.cap__art {
  position: relative;
  margin: 28px 0 40px;
  padding: 12px;
}

.cap__art::before,
.cap__art::after {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  border: 0 solid #3a3a42;
}

.cap__art::before {
  top: 0;
  left: 0;
  border-top-width: 1px;
  border-left-width: 1px;
}

.cap__art::after {
  right: 0;
  bottom: 0;
  border-right-width: 1px;
  border-bottom-width: 1px;
}

.cap__art svg {
  display: block;
  width: 100%;
  height: auto;
}

.cap h3,
.case h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 500;
}

.cap p:not(.cap__label),
.case p {
  color: var(--muted);
  font-size: 15px;
}

.cap__more {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  margin-top: 24px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.cap__more:hover {
  opacity: 0.8;
}

.ai {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
}

.ai > div:first-child {
  display: flex;
  flex-direction: column;
}

.ai > div:first-child .ai__points {
  margin-top: auto;
  padding-top: 56px;
}

.ai__title {
  margin-top: 0;
}

.ai__lead {
  margin-top: 20px;
  max-width: 520px;
  color: var(--muted);
  font-size: 17px;
}

.ai__points {
  display: grid;
  gap: 18px;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
  font-size: 15px;
}

.ai__points li {
  padding-left: 16px;
  border-left: 2px solid rgba(255, 255, 255, 0.18);
}

.ai__points strong {
  display: block;
  margin-bottom: 2px;
  color: var(--text);
  font-weight: 500;
}

.chat {
  justify-self: end;
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 440px;
  min-height: 560px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  background: #161618;
  font-size: 14px;
  line-height: 1.6;
}

.chat__head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.chat__bot {
  flex: none;
  width: 20px;
  height: 20px;
  color: #a8a8b0;
}

.chat__title {
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.chat__tools {
  display: flex;
  gap: 14px;
  margin-left: auto;
  color: #a8a8b0;
}

.chat__tools svg,
.chat__send svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.chat__body {
  flex: 1;
  display: grid;
  align-content: end;
  gap: 14px;
  padding: 24px 16px 14px;
}

.chat__msg--me {
  justify-self: end;
  max-width: 82%;
  padding: 10px 14px;
  border-radius: 16px;
  background: #262628;
}

.chat__input {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 14px 14px;
  padding: 6px 6px 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 21px;
  color: #6b6b73;
  font-size: 14px;
  line-height: 20px;
}

.chat__send {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--text);
  color: #121212;
}

.chat__card {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  max-width: 320px;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  background: #0d0d0f;
}

.chat__kind {
  margin-top: 4px;
  color: #6b6b73;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.chat__kind:first-child {
  margin-top: 0;
}

.chat__item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
}

.chat__item span {
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 13px;
}

.chat__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.chat__btn {
  display: inline-flex;
  align-items: center;
  height: 30px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  font-size: 13px;
  line-height: 1;
}

.chat__btn--primary {
  border-color: var(--text);
  background: var(--text);
  color: var(--bg);
}

.cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.case {
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.075);
  border-radius: 14px;
  background: transparent;
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

a.case:hover {
  border-color: #161618;
  background: #161618;
}

/* Seven cards: the last one fills its row instead of sitting alone */
.cases > .case:last-child:nth-child(3n + 1) {
  grid-column: 1 / -1;
}

.case svg {
  width: 24px;
  height: 24px;
  margin-bottom: 20px;
  fill: none;
  stroke: #c8c8cf;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.faq {
  max-width: 880px;
  margin-top: 96px;
  scroll-margin-top: 32px;
}

.faq__title {
  margin: 0 0 16px;
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.faq details {
  border-top: 1px solid var(--line);
}

.faq details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  font-size: 16px;
  cursor: pointer;
  list-style: none;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: "+";
  color: var(--muted);
  font-family: var(--font-mono);
}

.faq details[open] summary::after {
  content: "\2212";
}

.faq details p {
  max-width: 680px;
  margin-top: -4px;
  padding-bottom: 14px;
  color: var(--muted);
}

.faq__more {
  display: inline-flex;
  align-items: center;
  margin-top: 24px;
  color: var(--text);
  font-size: 14px;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.faq__more:hover {
  opacity: 0.8;
}

.plans.plans--wide,
.faq.faq--landing {
  max-width: none;
  margin-top: 0;
}

.plans.plans--wide,
.faq.faq--landing {
  width: calc(100% * 2 / 3);
  margin-inline: auto;
}

.faq.faq--landing {
  width: calc(100% * 2 / 3 * 0.8);
  text-align: center;
}

.faq--landing details {
  text-align: left;
}

.lhead.lhead--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.lhead--center .lhead__lead {
  text-align: center;
}

@media (max-width: 960px) {
  .plans.plans--wide,
  .faq.faq--landing {
    width: auto;
  }
}

@media (max-width: 960px) {
  .caps,
  .cases {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .caps {
    margin: 0;
  }

  .cap {
    padding: 0 0 48px;
    border-left: 0;
  }

  .cap + .cap {
    padding-top: 48px;
    border-top: 1px solid rgba(255, 255, 255, 0.075);
  }

  .ai {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (min-width: 640px) and (max-width: 960px) {
  .cases {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cases > .case:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .lsection {
    padding-bottom: 112px;
  }

  .lhead {
    margin-bottom: 40px;
  }

  .lhead__lead {
    text-align: left;
  }
}

/* Footer */
.footer {
  display: flex;
  /* Fills the screen below the 73px navbar (72px + 1px border). */
  min-height: calc(100vh - 73px);
  min-height: calc(100svh - 73px);
  border-top: 1px solid rgba(255, 255, 255, 0.075);
  color: var(--muted);
  font-size: 14px;
}

.footer__body {
  display: grid;
  grid-template-columns: minmax(200px, 1fr) auto;
  grid-template-rows: auto 1fr;
  grid-template-areas:
    "brand links"
    "credit inner";
  column-gap: 72px;
  padding-top: 72px;
  padding-bottom: 88px;
}

.footer__brand {
  grid-area: brand;
}

.footer__brand p {
  max-width: 280px;
  margin-top: 12px;
}

.footer__links {
  grid-area: links;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 32px 40px;
}

.footer__label {
  margin-bottom: 14px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.footer__links ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.footer__inner {
  grid-area: inner;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin-bottom: -6px;
}

.footer__credit {
  grid-area: credit;
  align-self: end;
  padding-top: 48px;
}

/* Pixel wordmark drawn by pixel-title.js; canvas takes the text colour */
.pixel-title {
  display: block;
  padding-top: 16px;
  color: var(--text);
}

.pixel-title canvas {
  display: block;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

@media (max-width: 960px) {
  .footer__body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto 1fr auto;
    grid-template-areas:
      "brand"
      "links"
      "inner"
      "credit";
    row-gap: 48px;
  }

  .footer__inner {
    align-self: start;
    margin-bottom: 0;
  }

  .footer__credit {
    padding-top: 0;
  }
}

@media (max-width: 720px) {
  .footer__body {
    padding-top: 56px;
  }

  .footer__links {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
}

.footer a {
  color: var(--text);
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.footer a[href]:hover {
  opacity: 0.8;
}

.socials {
  display: flex;
  align-items: center;
  gap: 4px;
}

.footer .socials a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  color: var(--muted);
  transition: color 0.15s ease;
}

.footer .socials a[href]:hover {
  color: var(--text);
  opacity: 1;
}

.socials svg {
  width: 17px;
  height: 17px;
}


/* Ask about Nox: layout follows the Ask Hopium popup in the product demo */
.ask {
  position: fixed;
  left: 50%;
  bottom: 21px;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: min(504px, calc(100vw - 32px));
  color: var(--text);
  font-size: 14px;
  line-height: 20px;
  --ask-bg: rgba(22, 22, 24, 0.8);
  --ask-line: rgba(255, 255, 255, 0.1);
  --ask-pad: 8px;
}

/* Grows by the form padding on each side so the input bar stays put when opened */
.ask--open {
  bottom: calc(21px - var(--ask-pad));
  width: min(calc(504px + 2 * var(--ask-pad)), calc(100vw - 32px + 2 * var(--ask-pad)));
  height: min(480px, calc(100dvh - 16px));
  overflow: hidden;
  border-radius: 24px;
  background: var(--ask-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 0 0 1px var(--ask-line), 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.ask__head,
.ask__body {
  display: none;
}

.ask--open .ask__head {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  gap: 2px;
  height: 44px;
  padding: 0 10px 0 16px;
  border-bottom: 1px solid var(--ask-line);
}

.ask__hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.ask__title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.ask__close {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(237, 237, 234, 0.55);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.ask__close:hover {
  background: rgba(237, 237, 234, 0.06);
  color: var(--text);
}

.ask__close svg {
  width: 16px;
  height: 16px;
}

.ask--open .ask__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  overflow-y: auto;
  padding: 12px 16px;
  scrollbar-width: thin;
}

.ask__starters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}

.ask__starters[hidden] {
  display: none;
}

.ask__starter {
  padding: 4px 12px;
  border: 1px solid var(--ask-line);
  border-radius: 999px;
  background: transparent;
  color: rgba(237, 237, 234, 0.85);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.ask__starter:hover {
  background: rgba(237, 237, 234, 0.06);
}

.ask__log {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ask__msg {
  line-height: 1.625;
  overflow-wrap: anywhere;
}

.ask__msg a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.ask__msg--me {
  align-self: flex-end;
  margin-left: 40px;
  padding: 8px 14px;
  border-radius: 16px;
  background: rgba(237, 237, 234, 0.07);
  line-height: 20px;
  white-space: pre-wrap;
}

.ask--open .ask__form {
  position: relative;
  padding: 0 var(--ask-pad) var(--ask-pad);
}

.ask__bar {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding: 6px 6px 6px 16px;
  border: 1px solid var(--ask-line);
  border-radius: 21px;
  background: var(--ask-bg);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
  transition: border-color 0.15s ease;
}

.ask--open .ask__bar {
  background: transparent;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  box-shadow: none;
}

.ask__bar:focus-within {
  border-color: rgba(237, 237, 234, 0.3);
}

.ask__field {
  position: relative;
  display: flex;
  flex: 1;
  min-width: 0;
}

.ask__hint {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow: hidden;
  color: rgba(237, 237, 234, 0.7);
  white-space: nowrap;
  pointer-events: none;
}

.ask__input:not(:placeholder-shown) + .ask__hint,
.ask__input:focus + .ask__hint .ask__kbd {
  display: none;
}

.ask__kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 1px solid rgba(237, 237, 234, 0.18);
  border-radius: 6px;
  color: rgba(237, 237, 234, 0.7);
  font-family: var(--font-mono);
  font-size: 12px;
  line-height: 1;
}

.ask__input {
  flex: 1;
  min-height: 28px;
  max-height: 160px;
  padding: 4px 0;
  border: 0;
  outline: none;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 14px;
  line-height: 20px;
  resize: none;
  field-sizing: content;
}

.ask__send {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: var(--text);
  color: #121212;
  cursor: pointer;
  transition: background-color 0.15s ease, opacity 0.15s ease;
}

.ask__send:hover {
  background: rgba(237, 237, 234, 0.85);
}

.ask__send:disabled {
  opacity: 0.35;
  pointer-events: none;
}

.ask__send svg {
  width: 16px;
  height: 16px;
}

/* First-visit intro (intro.js): only the hero background shows until the page is ready. */
.intro body {
  overflow: hidden;
}

.intro .nav,
.intro .hero__content,
.intro main > section:not(.hero),
.intro .footer,
.intro .ask {
  opacity: 0;
  pointer-events: none;
}

.intro-reveal .nav,
.intro-reveal .hero__content,
.intro-reveal main > section:not(.hero),
.intro-reveal .footer,
.intro-reveal .ask {
  transition: opacity 0.3s ease;
}
