/* the question pages (scripts/pages.mjs), on the landing's styles.css and its components, in the
   landing's top bar and footer: light, as the landing is for everyone unless chosen otherwise, and
   every element with its dark rule */

/* the page's column is the landing's, so its edges line up with the bar and the footer */
.q-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* the wordmark leads back to the landing */
a.brand {
  display: block;
  border-radius: 4px;
}

/* the bar's join control goes to the join block below: ink, as the landing's join button */
.bar-join {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 11px;
  background: var(--text);
  color: var(--bg);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: opacity 150ms ease;
}

.bar-join:hover {
  opacity: 0.88;
}

/* the join control stays on every width: on a narrow phone it gets tighter instead */
@media (max-width: 479px) {
  .bar-join {
    height: 32px;
    padding: 0 11px;
    font-size: 14px;
  }
}

/* a 360 px phone: the wordmark, the switch and the gaps give up the width the join control needs */
@media (max-width: 419px) {
  .q-head .brand img {
    width: auto;
    height: 19px;
  }

  .q-head .bar-end {
    gap: 5px;
  }

  .q-head .hero-bar {
    gap: 8px;
  }

  .q-head .seg button {
    width: 32px;
    min-width: 32px;
    padding: 0;
  }

  .bar-join {
    padding: 0 9px;
    font-size: 13px;
  }
}

.q-hero {
  display: grid;
  grid-template-columns: minmax(0, 6fr) minmax(0, 6fr);
  gap: 48px;
  align-items: center;
  padding: 64px 0 56px;
}

.kicker {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.q-page h1 {
  font-size: clamp(32px, calc(1.9vw + 20px), 50px);
  line-height: 1.05;
  font-weight: 800;
  font-stretch: 88%;
  letter-spacing: -0.02em;
  text-wrap: balance;
  overflow-wrap: break-word;
}

/* german and dutch compounds (hinterherzutelefonieren, buitendienstteams) are wider than a phone */
.q-page :is(h1, h2, h3):is(:lang(de), :lang(nl)) {
  -webkit-hyphens: auto;
  hyphens: auto;
}

.q-lead {
  max-width: 40ch;
  margin-top: 20px;
  font-size: 19px;
  line-height: 1.45;
  color: var(--text);
  text-wrap: pretty;
}

.wide .q-lead {
  max-width: 70ch;
}

.tldr {
  max-width: 46ch;
  margin-top: 24px;
  padding: 16px 18px;
  border-radius: 16px;
  background: var(--surface);
  box-shadow: var(--rim);
}

.tldr > p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tldr ul {
  display: grid;
  gap: 7px;
}

.tldr li {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--muted);
}

.tldr li::before {
  content: "";
  width: 7px;
  height: 7px;
  margin-top: 7px;
  background: var(--orange);
}

.q-sec.first .tldr {
  max-width: 70ch;
}

/* the graphic: the landing's own elements of the app, floating and tilted on a soft light */
.art {
  position: relative;
  display: grid;
  gap: 18px;
  justify-items: center;
  padding: 28px 8px;
  isolation: isolate;
}

.art::before {
  content: "";
  position: absolute;
  inset: 0 -4%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(
    closest-side,
    color-mix(in srgb, var(--surface) 85%, transparent),
    transparent
  );
}

.art .out.voice {
  justify-self: end;
  width: min(100%, 420px);
  padding: 0.7em 0.9em 0.8em;
  border-radius: 1.1em 1.1em 0.3em 1.1em;
  font-size: 19px;
  box-shadow: var(--shadow-float);
  transform: rotate(-2deg);
}

.art .out.voice[data-align="center"] {
  justify-self: center;
}

.art .out.voice[data-align="start"] {
  justify-self: start;
}

.art > .card {
  width: min(100%, 380px);
  box-shadow: var(--shadow-float);
  transform: rotate(1.5deg);
}

.art .banner {
  justify-self: start;
  width: min(100%, 360px);
  font-size: 15px;
  box-shadow:
    0 0 0 1px var(--border),
    var(--shadow-float);
  transform: rotate(-1deg);
}

.card-note {
  color: var(--muted);
}

.arrow {
  color: var(--dim);
  line-height: 0;
}

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

.chat {
  display: grid;
  gap: 8px;
  width: min(100%, 360px);
  padding: 14px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
  transform: rotate(-1.5deg);
}

.ch-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  font-weight: 650;
}

.ch-head span {
  margin-left: auto;
  color: var(--dim);
  font-size: 12px;
  font-weight: 500;
}

.msg {
  max-width: 85%;
  padding: 7px 10px;
  border-radius: 12px;
  background: var(--pill);
  font-size: 14px;
  line-height: 1.3;
}

.msg small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.msg.me {
  justify-self: end;
  background: var(--bar-off);
}

.msg.pic {
  width: 120px;
  height: 70px;
  background: linear-gradient(135deg, #c9cdc6, #9aa19a);
}

[data-theme="dark"] .msg.pic {
  background: linear-gradient(135deg, var(--dim), var(--bar-off));
}

.unread {
  justify-self: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--failure);
  color: var(--on-failure);
  font-size: 12px;
  font-weight: 700;
}

.board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: min(100%, 400px);
  padding: 12px;
  border-radius: 16px;
  background: #e4e6e2;
  box-shadow: var(--shadow-float);
  transform: rotate(-1.5deg);
}

.board .col {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 8px;
  border-radius: 10px;
  background: #f1f2ef;
}

.board .col p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.board .bc {
  height: 30px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 1px rgb(0 0 0 / 0.08);
}

.board .bc.l {
  border-top: 4px solid #c9cdc6;
}

/* in dark the board steps up from the page's surface, as the app's dark surfaces do */
[data-theme="dark"] .board {
  background: var(--surface);
}

[data-theme="dark"] .board .col {
  background: var(--pill);
}

[data-theme="dark"] .board .bc {
  background: var(--bar-off);
}

[data-theme="dark"] .board .bc.l {
  border-top-color: var(--dim);
}

.stale {
  justify-self: start;
  margin-top: -6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--surface);
  box-shadow: var(--rim);
  color: var(--failure);
  font-size: 13px;
  font-weight: 650;
}

.sheet {
  width: min(100%, 400px);
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
  font-size: 13px;
  transform: rotate(-1.5deg);
}

.sheet p {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr 0.9fr;
  border-bottom: 1px solid var(--hairline);
}

.sheet p > * {
  padding: 7px 9px;
  border-right: 1px solid var(--hairline);
}

.sheet .sh {
  background: #eef0ec;
}

[data-theme="dark"] .sheet .sh {
  background: var(--pill);
}

.sheet .sh b {
  color: var(--muted);
  font-weight: 700;
}

.team-mini {
  display: grid;
  gap: 12px;
  width: min(100%, 420px);
  padding: 16px;
  border-radius: 22px;
  background: var(--surface);
  box-shadow: var(--shadow-float);
}

.team-mini .tp {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.team-mini .tile {
  width: 32px;
  height: 32px;
  font-size: 12px;
}

.team-mini ol {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-mini ol li {
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--pill);
  color: var(--muted);
  font-size: 12px;
}

.team-mini .card {
  width: 100%;
  box-shadow: var(--shadow-card);
}

.brief {
  justify-self: end;
  width: min(100%, 360px);
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow:
    0 0 0 1px var(--border),
    var(--shadow-float);
  transform: rotate(1.5deg);
}

.brief p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.brief ul {
  display: grid;
  gap: 6px;
  font-size: 15px;
}

.brief li b {
  display: inline-block;
  min-width: 1.4em;
  color: var(--orange);
}

/* the sections under the answer, each under a question */
.q-sec {
  padding: 52px 0;
  border-top: 1px solid var(--hairline);
}

.q-sec.first {
  padding-top: 64px;
  border-top: 0;
}

.q-sec h2 {
  margin-bottom: 28px;
  font-size: clamp(24px, calc(0.9vw + 17px), 34px);
  font-weight: 800;
  font-stretch: 90%;
  letter-spacing: -0.015em;
}

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

/* four steps of a loop read as two rows of two */
@media (min-width: 900px) {
  .three:has(> :nth-child(4)) {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.three > div {
  padding-top: 18px;
  border-top: 2px solid var(--text);
}

.three h3 {
  margin-bottom: 8px;
  font-size: 18px;
  font-weight: 700;
}

.three p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}

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

.compare > div {
  padding: 22px;
  border-radius: 20px;
  background: var(--surface);
  box-shadow: var(--rim);
}

.compare h3 {
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.compare ul {
  display: grid;
  gap: 12px;
}

.compare li {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  font-size: 16px;
  line-height: 1.4;
}

.compare li::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 2px;
  background: var(--dim);
}

.compare .werk li::before {
  background: var(--orange);
}

.compare .said {
  font-size: 19px;
  line-height: 1.4;
}

/* one fact with its named source */
.stat {
  display: grid;
  gap: 6px;
  max-width: 70ch;
  padding-left: 18px;
  border-left: 4px solid var(--orange);
}

.stat b {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.35;
}

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

.tbl-wrap {
  margin-top: 36px;
}

.tbl {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 15px;
}

.tbl th,
.tbl td {
  padding: 14px;
  border-bottom: 1px solid var(--hairline);
  line-height: 1.4;
  text-align: left;
  vertical-align: top;
}

.tbl th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 650;
}

.tbl td:first-child {
  font-weight: 750;
  white-space: nowrap;
}

.tbl tr.us td {
  background: color-mix(in srgb, var(--orange) 7%, transparent);
}

.tbl tr.us td:first-child {
  border-radius: 12px 0 0 12px;
}

.tbl tr.us td:last-child {
  border-radius: 0 12px 12px 0;
}

/* the landing's questions, a step smaller */
.q-sec .faq-item summary {
  gap: 16px;
  padding: 18px 0;
  font-size: 18px;
  font-weight: 650;
}

.q-sec .faq-item summary svg {
  stroke: currentColor;
  stroke-width: 2;
}

.q-sec .faq-a {
  max-width: 70ch;
  padding-bottom: 20px;
}

/* the guides' industry filter: the waitlist survey's chips, shown by questions.js */
.g-filter {
  min-width: 0;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
}

/* the guides page: every question under its group, each the link to its page, its answer under it */
.g-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px 32px;
}

.g-list li {
  padding-top: 18px;
  border-top: 1px solid var(--hairline);
}

.g-list h3 {
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  text-wrap: balance;
}

.g-list a {
  color: var(--text);
  text-decoration: none;
  text-underline-offset: 3px;
}

.g-list a:hover {
  text-decoration: underline;
}

.g-list p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
  text-wrap: pretty;
}

/* the join block: its heading and line, and the landing's waitlist form under them, which asks its
   optional steps in its own place */
.q-join {
  --field-bg: var(--bg);
  display: grid;
  justify-items: center;
  margin-bottom: 56px;
  padding: 56px 32px 48px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--rim);
  text-align: center;
  scroll-margin-top: 24px;
}

.q-join h2 {
  font-size: clamp(22px, calc(0.9vw + 15px), 30px);
  font-weight: 800;
  font-stretch: 90%;
}

.q-join > p {
  max-width: 46ch;
  margin-top: 8px;
  color: var(--muted);
}

.q-join .join {
  max-width: 480px;
  margin-top: 28px;
}

.q-join .ask input[type="text"],
.q-join .ask textarea {
  background: var(--surface);
}

@media (max-width: 899px) {
  .q-hero {
    grid-template-columns: minmax(0, 1fr);
    padding: 44px 0;
  }

  .q-sec {
    padding: 40px 0;
  }

  .three,
  .compare,
  .g-list {
    grid-template-columns: minmax(0, 1fr);
  }

  .q-join {
    margin-bottom: 40px;
    padding: 40px 20px 32px;
  }

  .tbl-wrap {
    overflow-x: auto;
  }
}

/* the privacy policy and the terms: one column of plain prose on the page's own tokens, so dark
   needs no rule of its own */
.doc-date {
  margin-top: 16px;
  color: var(--muted);
  font-size: 15px;
}

.doc {
  max-width: 72ch;
  padding-bottom: 72px;
}

.doc h2 {
  margin: 44px 0 14px;
  font-size: clamp(21px, calc(0.5vw + 17px), 26px);
  line-height: 1.2;
  font-weight: 800;
  font-stretch: 90%;
  letter-spacing: -0.01em;
}

/* under the title, a list of the sections */
.doc .doc-toc > p {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.doc .doc-toc li {
  font-size: 16px;
  line-height: 1.45;
}

.doc-toc {
  margin-top: 8px;
}

.doc .doc-toc ol {
  padding-left: 1.6em;
  list-style: decimal;
}

.doc .doc-toc li + li {
  margin-top: 4px;
}

.doc section {
  scroll-margin-top: 24px;
}

.doc h3 {
  margin: 24px 0 6px;
  font-size: 17px;
  font-weight: 700;
}

.doc p,
.doc li {
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.doc p + p,
.doc p + ul,
.doc ul + p {
  margin-top: 12px;
}

.doc ul {
  padding-left: 1.2em;
  list-style: disc;
}

.doc li + li {
  margin-top: 6px;
}

.doc a {
  color: var(--text);
  text-underline-offset: 2px;
}

.doc .tbl-wrap {
  margin-top: 20px;
  overflow-x: auto;
}

.doc .tbl td:first-child {
  white-space: normal;
}

/* the footer's lockup is a link back to the landing on these pages */
a.lockup {
  color: inherit;
  text-decoration: none;
}
