/* chappe.org (and /fr): what Chappe is, the AIs it works with, how it works, trust, setup guides, questions, sign-up. */

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 64px;
  display: flex;
  flex-direction: column;
  gap: 88px;
}

.top {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.cta {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
}

.cta:hover {
  color: var(--bg);
}

.hero {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}

.hero-text {
  flex: 1 1 440px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.hero h1 {
  margin: 0;
  max-width: 11em;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(42px,6.4vw,76px);
  line-height: .98;
  letter-spacing: -.035em;
}

.hero-text>p {
  margin: 0;
  font-size: 19px;
  line-height: 1.55;
  color: var(--muted);
  max-width: 34em;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.primary {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  padding: 0 26px;
  border-radius: 16px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.primary:hover {
  color: var(--on-accent);
}

.ghost {
  min-height: 56px;
  display: inline-flex;
  align-items: center;
  padding: 0 8px;
  font-size: 17px;
  font-weight: 600;
  text-decoration: none;
}

.demo {
  flex: 1 1 460px;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.chat {
  flex: 1 1 210px;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat.to {
  border: 2px dashed var(--accent);
}

.chat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.chat.to .chat-name {
  color: var(--accent);
}

.bubble {
  margin: 0;
  border-radius: 14px 14px 14px 4px;
  background: var(--code);
  padding: 8px 12px;
  font-size: 14px;
  line-height: 1.4;
}

.bubble.me {
  align-self: flex-end;
  border-radius: 14px 14px 4px 14px;
  background: var(--ink);
  color: var(--bg);
}

.bubble ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

.demo-mast {
  flex: 0 0 44px;
  display: flex;
  justify-content: center;
  color: var(--accent);
}

.section-title {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 36px;
  letter-spacing: -.02em;
  line-height: 1.1;
}

.how {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.steps {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 32px;
}

.steps li {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 2px solid var(--ink);
  padding-top: 16px;
}

.steps .n {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  line-height: 1;
  color: var(--accent);
}

.steps h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
}

.steps p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.trust {
  background: var(--band-bg);
  color: var(--band-ink);
  border-radius: 32px;
  padding: clamp(28px,5vw,64px);
  display: flex;
  flex-direction: column;
  gap: 44px;
}

.trust-head {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 56px;
  align-items: flex-end;
}

.trust h2 {
  flex: 1 1 420px;
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(40px,5.6vw,72px);
  line-height: .98;
  letter-spacing: -.035em;
}

.trust-head p {
  flex: 1 1 300px;
  margin: 0;
  font-size: 18px;
  line-height: 1.55;
  color: var(--band-ink2);
}

.proofs {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(min(100%,340px),1fr));
  gap: 32px 24px;
}

.proof {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.proof h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 21px;
}

.proof>p {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  color: var(--band-ink2);
}

.shot {
  min-height: 148px;
  background: var(--band-surface);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.shot p {
  margin: 0;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
}

.box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  background: var(--band-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.box.off {
  background: none;
  border: 2px solid var(--band-line);
}

.check.off {
  color: var(--band-faint);
}

.check.off .label {
  text-decoration: line-through;
}

.tag {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: var(--band-ink);
  background: var(--band-chip);
  border-radius: 999px;
  padding: 3px 9px;
  white-space: nowrap;
}

.pill {
  border-radius: 9px;
  padding: 5px 13px;
  font-weight: 700;
  align-self: flex-start;
}

.pill.on {
  background: var(--band-accent);
  color: var(--band-on-accent);
}

.pill.out {
  border: 1px solid var(--band-line);
  font-weight: 600;
}

.pill.danger {
  border: 1px solid var(--band-danger-line);
  color: var(--band-danger-ink);
}

.bottom {
  margin-top: auto;
  display: flex;
  gap: 8px;
}

.code {
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.5;
  color: var(--band-faint);
  gap: 6px;
}

.code .tagline {
  color: var(--band-accent);
}

.code .sealed {
  padding-left: 12px;
  overflow-wrap: anywhere;
  color: var(--band-ink);
  font-family: var(--text);
  font-size: 14px;
}

.code .inject {
  padding-left: 12px;
  overflow-wrap: anywhere;
}

.days {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.days span {
  border: 1px solid var(--band-line);
  border-radius: 999px;
  padding: 4px 11px;
}

.days span.on {
  border-color: var(--band-accent);
  background: var(--band-accent);
  color: var(--band-on-accent);
  font-weight: 700;
}

.setup {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: clamp(24px,4vw,48px);
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
}

.setup-intro {
  flex: 1 1 300px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.setup-intro>p {
  margin: 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--muted);
}

.say {
  margin-top: 8px;
  background: var(--bg);
  border-radius: 16px;
  padding: 16px 18px;
}

.say p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

.say strong {
  display: block;
  margin-top: 4px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
  color: var(--ink);
}

.setup-steps {
  flex: 1.4 1 380px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.access {
  background: var(--accent);
  color: var(--on-accent);
  border-radius: 28px;
  padding: clamp(28px,5vw,56px);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  align-items: flex-end;
}

.access-text {
  flex: 1 1 320px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.access h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(32px,4vw,44px);
  letter-spacing: -.02em;
  line-height: 1.05;
}

.access-text p {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  opacity: .88;
}

.access .join {
  flex: none;
  min-height: 54px;
  border-radius: 14px;
  background: var(--paper);
  color: var(--paper-ink);
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  max-width: 40em;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  font-weight: 600;
}

.sections {
  display: contents;
}

.bubble p {
  margin: 0;
}

.pill.end {
  margin-top: auto;
}

.faint {
  color: var(--band-ink2);
}

.menu {
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 15px;
  font-weight: 600;
}

.menu a {
  white-space: nowrap;
  text-decoration: none;
}

.menu .extra {
  color: var(--ink);
}

.menu .quiet {
  color: var(--muted);
}

.menu .signin {
  color: var(--accent);
}

.note {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
}

/* The relay line: the AIs as stations of Chappe's telegraph line. */
.relay {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.relay h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
}

.line {
  position: relative;
}

.line::before {
  content: "";
  position: absolute;
  left: 6%;
  right: 6%;
  top: 25px;
  height: 2px;
  background: var(--ink);
}

.stations {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 8px;
}

.station {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
}

.stop {
  position: relative;
  z-index: 1;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--paper-ink);
  display: grid;
  place-items: center;
  transition: transform 160ms var(--ease-out);
}

.relay-mast {
  color: var(--paper-accent);
}

.station-name {
  font-family: var(--display);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
}

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

@media (hover: hover) {
  .station:hover .stop {
    transform: translateY(-3px);
  }
}

.dispatch {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 6%;
  height: 28px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--accent);
  color: var(--on-accent);
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  animation: relay 3.2s cubic-bezier(.65, 0, .35, 1) .6s both;
}

/* It ends faded out, between the last two stations, so it never sits on a logo. */
@keyframes relay {
  from { left: 6%; opacity: 0; }
  8% { opacity: 1; }
  85% { opacity: 1; }
  to { left: 80%; opacity: 0; }
}

.address {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
}

.address code {
  font-family: var(--mono);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 2px 8px;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  gap: 40px;
  align-items: start;
}

.uses {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.use-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 32px;
}

.use h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
}

.use p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

.questions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.questions details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 22px;
}

.questions summary {
  min-height: 60px;
  padding: 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  list-style: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 19px;
}

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

/* The browser's triangle is gone with display: flex; this chevron says the answer opens, and turns when it does. */
.questions summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: -4px;
  border-right: 2.5px solid var(--accent);
  border-bottom: 2.5px solid var(--accent);
  transform: rotate(45deg);
  transition: transform 200ms var(--ease-out);
}

.questions details[open] summary::after {
  margin-top: 4px;
  transform: rotate(225deg);
}

.questions summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 8px;
}

.questions details p {
  margin: 0 0 20px;
  max-width: 62ch;
  font-size: 16px;
  line-height: 1.65;
  color: var(--muted);
}

.founder {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 44em;
}

.founder h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-size: 22px;
}

.founder p {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: var(--muted);
}

@media (max-width: 760px) {
  .menu .extra {
    display: none;
  }

  .stations {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    row-gap: 20px;
  }

  .line::before,
  .dispatch {
    display: none;
  }

  .split {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .dispatch {
    display: none;
  }

  .stop,
  .questions summary::after {
    transition: none;
  }
}
