/* Groundbase site: the app's own palette, system fonts, light only. */

:root {
  --bg: #edeff8;
  --card: #fbfbff;
  --ink: #232532;
  --ink-2: #474a59;
  --faint: #5c5f6f;
  --accent: #5d5294;
  --accent-ink: #4a4178;
  --accent-soft: rgba(93, 82, 148, 0.12);
  --line: rgba(35, 37, 50, 0.12);
  --frame: rgba(35, 37, 50, 0.18);
  --sans:
    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue",
    "Hiragino Sans", "PingFang SC", "Microsoft YaHei", Helvetica, sans-serif;
  --mono: "SF Mono", ui-monospace, Menlo, monospace;
  --shadow-shot: 0 18px 40px -22px rgba(35, 37, 50, 0.45);
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
[id] {
  scroll-margin-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
p {
  margin: 0;
}
img {
  max-width: 100%;
}

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.lede {
  color: var(--ink-2);
  font-size: 18px;
  max-width: 36em;
}
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--accent);
  color: #fbfbff;
  font-weight: 500;
  font-size: 15px;
}
.btn:hover {
  background: var(--accent-ink);
  text-decoration: none;
}
.btn.big {
  padding: 13px 26px;
  font-size: 16px;
}
.btn.ghost {
  background: transparent;
  color: var(--accent-ink);
  box-shadow: inset 0 0 0 1px rgba(93, 82, 148, 0.4);
}
.btn.ghost:hover {
  background: rgba(93, 82, 148, 0.08);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

/* header */
.hdr {
  border-bottom: 1px solid var(--line);
}
.hdr .wrap {
  display: flex;
  align-items: center;
  gap: 28px;
  height: 60px;
}
.hdr .wordmark {
  display: block;
  height: 21px;
  width: auto;
}
.hdr nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
}
.hdr nav a,
.langs,
.hdr .btn {
  white-space: nowrap;
}
.hdr nav a {
  color: var(--ink-2);
}
.hdr nav a:hover,
.hdr nav a[aria-current="page"] {
  color: var(--ink);
  text-decoration: none;
}
.langs {
  position: relative;
  font-size: 13px;
}
.langs summary {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--ink-2);
  cursor: pointer;
  list-style: none;
}
.langs summary::-webkit-details-marker {
  display: none;
}
.langs summary:hover,
.langs[open] summary {
  background: var(--accent-soft);
  color: var(--ink);
}
.langs .menu {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 10;
  display: flex;
  flex-direction: column;
  min-width: 100%;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 8px 24px -12px rgba(35, 37, 50, 0.35);
}
.langs .menu a {
  padding: 6px 10px;
  border-radius: 6px;
  color: var(--ink-2);
}
.langs .menu a:hover {
  background: var(--accent-soft);
  color: var(--ink);
  text-decoration: none;
}

/* screenshots: a thin frame, so the interface carries the weight */
.shot {
  margin: 0;
  border: 1px solid var(--frame);
  border-radius: 12px;
  overflow: hidden;
  background: var(--card);
  box-shadow: var(--shadow-shot);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  cursor: zoom-in;
}

/* a screenshot at full size */
.lb {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(22, 24, 38, 0.82);
  align-items: center;
  justify-content: center;
  padding: 4vmin;
  cursor: zoom-out;
}
.lb.open {
  display: flex;
}
.lb img {
  max-width: 92vw;
  max-height: 92vh;
  width: auto;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  background: var(--card);
}

/* hero: the promise beside one conversation */
.hero {
  padding: 72px 0 24px;
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
}
.hero .copy {
  display: grid;
  gap: 20px;
  justify-items: start;
}
.hero h1 {
  font-size: clamp(34px, 4.4vw, 52px);
  line-height: 1.08;
}
.hero .actions {
  margin-top: 6px;
}

/* a page's own opening, below the header */
.intro {
  padding: 72px 0 0;
}
.intro .copy {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.intro.split .wrap {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
  gap: 56px;
  align-items: center;
}
.intro h1 {
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.1;
  max-width: 24em;
}
/* Japanese headlines break between phrases, not inside one */
h1,
h2,
h3 {
  word-break: auto-phrase;
}
.jumps {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 4px;
}
.jumps a {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--card);
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 15px;
  font-weight: 500;
}
.jumps a:hover {
  text-decoration: none;
  border-color: rgba(93, 82, 148, 0.4);
  color: var(--accent-ink);
}

/* home: the hero's three ideas, each leading to its page */
.pillars-sec {
  padding-top: 56px;
}
.pillars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.pillar {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 8px;
  color: var(--ink);
}
.pillar:hover {
  text-decoration: none;
  border-color: rgba(93, 82, 148, 0.4);
}
.pillar h3 {
  font-size: 20px;
}
.pillar p {
  color: var(--ink-2);
  font-size: 15px;
}
.pillar .more-link {
  margin-top: 8px;
  color: var(--accent);
  font-weight: 500;
  font-size: 14px;
}
/* build: a business's three steps, top to bottom, joined by a line; then the slots a developer fills */
.flowv {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px;
}
.flowv h2 {
  font-size: 20px;
  margin-bottom: 18px;
}
.flowv ol {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 22px;
}
.flowv li {
  position: relative;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 14px;
}
.flowv li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 15px;
  top: 36px;
  bottom: -20px;
  width: 2px;
  background: var(--accent-soft);
}
.flowv .num {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: var(--accent);
  color: #fbfbff;
  font-weight: 600;
  font-size: 15px;
}
.flowv h3 {
  font-size: 17px;
  margin-top: 4px;
}
.flowv p {
  color: var(--ink-2);
  font-size: 15px;
  margin-top: 4px;
}
.points {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.point {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
}
.point h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent-ink);
  margin-bottom: 10px;
}
.point ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  color: var(--ink-2);
  font-size: 14px;
}
.cli {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 14px;
  color: var(--ink-2);
  font-size: 14px;
}
.cli code {
  font-family: var(--mono);
  font-size: 13px;
  padding: 6px 12px;
  border-radius: 8px;
  background: var(--ink);
  color: #eef0fa;
}

/* hero picture: real screens stacked, each sized as a share of the stack's width */
.stack {
  position: relative;
  margin: 0;
  aspect-ratio: 1 / 0.92;
}
.stack .layer {
  position: absolute;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--frame);
  background: var(--card);
  box-shadow: var(--shadow-shot);
  display: block;
  animation: rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  /* hover moves `translate` and `scale`, the animations move `transform`: they never fight */
  transition:
    translate 0.6s cubic-bezier(0.2, 0.7, 0.2, 1),
    scale 0.3s ease,
    opacity 0.3s ease,
    border-color 0.3s ease,
    box-shadow 0.3s ease;
}
/* the screen under the pointer comes forward and names its section; the others step back */
.stack:hover .layer,
.stack:focus-within .layer {
  opacity: 0.6;
}
.stack .layer:hover,
.stack .layer:focus-visible {
  z-index: 3;
  opacity: 1;
  scale: 1.03;
  border-color: rgba(93, 82, 148, 0.55);
  box-shadow: 0 26px 50px -24px rgba(35, 37, 50, 0.55);
  outline: none;
}
.stack .label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--accent);
  color: #fbfbff;
  max-width: calc(100% - 20px);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  opacity: 0;
  translate: 0 6px;
  transition:
    opacity 0.25s ease,
    translate 0.25s ease;
}
.stack .corner .label {
  font-size: 12px;
}
.stack .layer:hover .label,
.stack .layer:focus-visible .label {
  opacity: 1;
  translate: none;
}
.stack .layer:hover,
.stack .layer:focus-visible,
.stack .label {
  text-decoration: none;
}
.stack .layer img {
  display: block;
  width: 100%;
  height: auto;
}
.stack .back {
  top: 0;
  left: 6%;
  width: 92%;
}
.stack .back img {
  opacity: 0.85;
}
.stack .front {
  top: 22%;
  left: 0;
  width: 78%;
}
.stack .corner {
  top: 30%;
  right: 0;
  width: 24%;
}

/* the screens rise in one after another, then the help desk floats */
.stack .front {
  animation-delay: 0.15s;
}
.stack .corner {
  animation:
    rise 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both,
    float 6s ease-in-out 1.2s infinite;
}
.stack:hover .back {
  translate: 10px -10px;
}
.stack:hover .front {
  translate: -10px 6px;
}
.stack:hover .corner {
  translate: 12px 10px;
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes float {
  0%,
  100% {
    transform: none;
  }
  50% {
    transform: translateY(-8px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .stack .layer,
  .stack .corner,
  .stack .label {
    animation: none;
    transition: none;
  }
  .stack .layer:hover,
  .stack .layer:focus-visible {
    scale: none;
  }
}

/* sections */
.sec {
  padding: 96px 0 0;
}
.head {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin-bottom: 36px;
}
.sec h2 {
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.14;
}

/* two ways in */
.panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 20px;
}
.panel {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 30px;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  row-gap: 14px;
}
.panel h3 {
  font-size: 23px;
}
.panel > p {
  color: var(--ink-2);
}
.panel .shot,
.ways {
  margin-top: 6px;
}
.panel > .shot {
  align-self: start;
}
.ways {
  display: grid;
  gap: 18px;
  align-self: start;
}
.way {
  display: grid;
  gap: 8px;
}
.way p {
  color: var(--ink-2);
  font-size: 14px;
}
.tag {
  display: inline-block;
  margin-right: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-weight: 600;
  font-size: 13px;
}

/* how it works: what an agent is given, the agent, who it serves */
.how-lede {
  margin: -16px 0 32px;
}
.hub {
  margin: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}
.hub .feeds {
  display: grid;
  gap: 12px;
}
.node {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  gap: 2px;
  text-align: center;
}
.node b {
  font-size: 17px;
}
.node span {
  color: var(--ink-2);
  font-size: 14px;
}
.node.agent {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  padding: 30px 18px;
}
.node.agent span {
  color: #e4e1f4;
}
.hub .arrow {
  color: var(--faint);
  font-size: 22px;
}
.fork {
  display: grid;
  gap: 18px;
}
.fork .question {
  display: grid;
  gap: 4px;
}
.fork h3 {
  font-size: 20px;
}
.fork p {
  color: var(--ink-2);
}
/* the ask splits: a line down the left, one arm to each outcome */
.branches {
  list-style: none;
  margin: 0 0 0 10px;
  padding: 0 0 0 28px;
  border-left: 2px solid var(--line);
  display: grid;
  gap: 14px;
}
.branches li {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  display: grid;
  gap: 4px;
}
.branches li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 26px;
  width: 30px;
  border-top: 2px solid var(--line);
}
.branches li:last-child::after {
  content: "";
  position: absolute;
  left: -32px;
  top: 28px;
  bottom: -2px;
  width: 4px;
  background: var(--bg);
}
.branches .tag {
  justify-self: start;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

/* text beside a screen */
.row {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
  gap: 56px;
  align-items: center;
  padding: 28px 0;
}
.row.rev {
  grid-template-columns: minmax(0, 6fr) minmax(0, 5fr);
}
.row .text {
  display: grid;
  gap: 12px;
}
.row.rev .text {
  order: 2;
}
.row .shot.narrow {
  max-width: 420px;
  justify-self: center;
}
.row h3 {
  font-size: clamp(22px, 2.4vw, 26px);
  line-height: 1.22;
}
.row p {
  color: var(--ink-2);
  font-size: 17px;
}

/* the smaller supporting group */
.more-head {
  font-size: 18px;
  margin: 40px 0 16px;
}
.more {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: auto auto auto;
  gap: 16px;
}
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  display: grid;
  grid-row: span 3;
  grid-template-rows: subgrid;
  gap: 6px;
}
.card h4,
.cell h4 {
  font-size: 16px;
  letter-spacing: -0.01em;
}
.card p,
.cell p {
  color: var(--ink-2);
  font-size: 14px;
}
.card .shot {
  margin-top: 8px;
  aspect-ratio: 4 / 3;
  background: var(--bg);
  box-shadow: none;
}
.card .shot img {
  height: 100%;
  object-fit: contain;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}
.grid.chat-ui {
  margin: 0 0 48px;
}
.cell {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 20px 22px;
  display: grid;
  gap: 6px;
  align-content: start;
}

/* privacy: what can stay on your network, and what each outside service receives */
.network {
  background: var(--card);
  border: 1px solid rgba(93, 82, 148, 0.4);
  border-radius: 18px;
  padding: 26px 28px;
  display: grid;
  gap: 18px;
}
.network h3,
.outside h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
}
.network h3 {
  color: var(--accent-ink);
}
.flow {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: stretch;
  gap: 12px;
}
.flow li:not(.arrow) {
  flex: 1;
  background: var(--accent-soft);
  border-radius: 12px;
  padding: 16px 18px;
  display: grid;
  align-content: center;
  justify-items: center;
  text-align: center;
  gap: 2px;
}
.flow li:nth-child(3) {
  background: var(--accent);
  color: #fbfbff;
}
.flow span {
  font-size: 14px;
  color: var(--ink-2);
}
.flow li:nth-child(3) span {
  color: #e4e1f5;
}
.flow .arrow {
  align-self: center;
  color: var(--faint);
}
.models {
  display: flex;
  align-items: center;
  gap: 10px;
  white-space: nowrap;
  font-size: 14px;
  color: var(--ink-2);
}
.pill {
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(93, 82, 148, 0.4);
  color: var(--accent-ink);
}
.network.decide {
  margin-bottom: 24px;
}
.network .note {
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 14px;
}
.outside {
  margin-top: 40px;
  display: grid;
  gap: 8px;
}
.outside > p {
  color: var(--ink-2);
}
.groups {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.group h4 {
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.group ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.group li {
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 500;
  font-size: 15px;
}

/* hero badge: the privacy promise, ahead of the headline */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-ink);
  font-size: 13px;
  font-weight: 600;
}

/* ask us */
.ask {
  padding-bottom: 96px;
}
.ask .wrap {
  display: grid;
  gap: 16px;
  justify-items: start;
}
.ask .actions {
  margin-top: 6px;
}
.ask .or {
  color: var(--ink-2);
  font-size: 15px;
}

/* footer */
.ftr .inner {
  border-top: 1px solid var(--line);
  padding: 24px 0 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.ftr .brandcol {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ftr .wordmark {
  display: block;
  height: 17px;
  width: auto;
}
.ftr .by {
  font-size: 13px;
  font-weight: 500;
}
.ftr .links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-size: 12px;
}
.ftr .links a {
  color: var(--ink-2);
}
.ftr .links a:hover {
  color: var(--accent);
}
.ftr .legal {
  padding: 16px 0 48px;
  font-size: 12px;
  color: var(--faint);
}

/* the links still fit just above the breakpoint, in the longest language */
@media (max-width: 1100px) {
  .hdr .wrap {
    gap: 18px;
  }
  .hdr nav {
    gap: 14px;
  }
}

@media (max-width: 960px) {
  .hdr nav {
    display: none;
  }
  .points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hdr .langs {
    margin-left: auto;
  }
  .hero .wrap,
  .pillars,
  .intro.split .wrap,
  .panels,
  .row,
  .row.rev,
  .more,
  .groups {
    grid-template-columns: minmax(0, 1fr);
  }
  .row.rev .text {
    order: 0;
  }
  .panel,
  .card {
    grid-row: auto;
    grid-template-rows: auto auto auto;
  }
  .panels,
  .more {
    grid-template-rows: none;
  }
  .panel > .shot {
    width: min(100%, 420px);
  }
  .card .shot {
    aspect-ratio: auto;
  }
  .card .shot img {
    height: auto;
  }
  .hero,
  .intro {
    padding-top: 48px;
  }
  .hero .wrap {
    gap: 40px;
  }
  .sec {
    padding-top: 72px;
  }
  .row {
    gap: 24px;
  }
}
@media (max-width: 560px) {
  .wrap {
    padding: 0 16px;
  }
  .flow {
    flex-direction: column;
  }
  .flow .arrow {
    transform: rotate(90deg);
  }
  .models {
    flex-wrap: wrap;
    white-space: normal;
  }
  .hdr .langs {
    display: none;
  }
  .hdr .btn {
    margin-left: auto;
  }
  .grid,
  .points {
    grid-template-columns: minmax(0, 1fr);
  }
  .hub {
    grid-template-columns: minmax(0, 1fr);
  }
  .hub .arrow {
    justify-self: center;
    transform: rotate(90deg);
  }
  .panel {
    padding: 22px;
  }
}
