/* The home page: the chat-first hero, the demo, "Why demiros", the yes,
 * every team, the apps, safe by design, pricing and the close. */

/* ---------------------------------------------------------------- hero */
.hero {
  min-height: min(calc(100vh - 65px), 860px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  gap: 24px;
  padding: 56px 24px 40px;
}
.hero__mark .dm-mark {
  width: 52px;
  height: 52px;
}
.hero__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: clamp(44px, 6.4vw, 84px);
  line-height: 1;
  letter-spacing: -0.02em;
}
.hero__title b {
  font-weight: 500;
}
.hero__lede {
  font-size: 19px;
  color: var(--cream-soft);
  max-width: 34em;
}
.ask {
  width: 100%;
  max-width: 760px;
  margin-top: 4px;
  background: var(--ink-raised);
  border: 1px solid var(--ink-line);
  border-radius: 22px;
  padding: 18px 18px 12px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.ask:focus-within {
  border-color: var(--ink-line-hover);
}
.ask textarea {
  background: transparent;
  border: 0;
  color: var(--cream);
  font-size: 19px;
  line-height: 1.45;
  resize: none;
  outline: none;
  width: 100%;
}
.ask textarea::placeholder {
  color: var(--grey);
}
.ask__foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.ask__note {
  font-size: 13px;
  color: var(--grey);
}
.ask__send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 0;
  background: var(--cream);
  color: var(--ink);
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  width: 100%;
  max-width: 820px;
}
.chip-btn {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: 9px 15px;
  min-height: 44px;
  font-size: 14px;
  color: var(--cream-soft);
  white-space: nowrap;
}
.chip-btn:hover {
  border-color: var(--ink-line-hover);
  color: var(--cream);
  text-decoration: none;
}
.hero__apps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding-top: 28px;
}
.hero__apps p {
  font-size: 14px;
  color: var(--grey);
}
.hero__apps b {
  color: var(--cream);
  font-weight: 600;
}
.apps-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 12px 34px;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  max-width: 900px;
  color: var(--grey-logo);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.apps-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 26px;
}
.apps-row .logo {
  width: 24px;
  height: 24px;
}
@media (max-width: 640px) {
  .chips {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .chips li {
    flex: none;
  }
  .hero {
    padding: 40px 16px 32px;
  }
}

/* ---------------------------------------------------------------- the demo
 * Four examples, one radio each; the chosen one shows. Without a script it
 * shows finished (data-stage="3"); home.js plays each one through thinking,
 * working and checking first, and moves to the next every few seconds.
 * A tab changes only the demo: the radios sit in the window, beside their
 * tabs, so focusing one never scrolls the page, and every example and every
 * stage share one grid cell, so the window keeps the height of the tallest. */
.demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.demo .h2 {
  margin-top: -16px;
}
.demo__win {
  position: relative;
  width: 100%;
  max-width: 980px;
  border: 1px solid var(--ink-edge);
  border-radius: 16px;
  overflow: hidden;
  background: var(--ink);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
  text-align: left;
}
.demo__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-bottom: 1px solid var(--ink-rule);
  background: var(--ink-card);
}
.demo__dots {
  display: flex;
  gap: 8px;
}
.demo__dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-line);
}
.demo__url {
  margin-left: 12px;
  font-size: 12px;
  color: var(--grey);
}
.demo__tabs {
  margin-left: auto;
  display: flex;
  gap: 6px;
}
.demo__tab {
  border-radius: 999px;
  padding: 6px 12px;
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  white-space: nowrap;
  cursor: pointer;
  color: var(--grey-soft);
  border: 1px solid var(--ink-line);
}
#demo-invoices:checked ~ .demo__bar label[for="demo-invoices"],
#demo-brief:checked ~ .demo__bar label[for="demo-brief"],
#demo-support:checked ~ .demo__bar label[for="demo-support"],
#demo-sales:checked ~ .demo__bar label[for="demo-sales"] {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
#demo-invoices:focus-visible ~ .demo__bar label[for="demo-invoices"],
#demo-brief:focus-visible ~ .demo__bar label[for="demo-brief"],
#demo-support:focus-visible ~ .demo__bar label[for="demo-support"],
#demo-sales:focus-visible ~ .demo__bar label[for="demo-sales"] {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}
.demo__body {
  padding: 28px;
  min-height: 480px;
  display: grid;
}
.demo__pane {
  grid-area: 1 / 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  visibility: hidden;
}
#demo-invoices:checked ~ .demo__body .demo__pane--invoices,
#demo-brief:checked ~ .demo__body .demo__pane--brief,
#demo-support:checked ~ .demo__body .demo__pane--support,
#demo-sales:checked ~ .demo__body .demo__pane--sales {
  visibility: visible;
}
.bubble {
  align-self: flex-end;
  background: var(--ink-rule);
  border-radius: 16px 16px 4px 16px;
  padding: 11px 15px;
  font-size: 15px;
  max-width: 80%;
}
.demo__out {
  display: grid;
  align-items: start;
}
.demo__out > * {
  grid-area: 1 / 1;
}
.demo__step {
  visibility: hidden;
  max-width: 560px;
}
.demo__done {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 660px;
  visibility: hidden;
}
.demo__body[data-stage="0"] .demo__pane .demo__step--0,
.demo__body[data-stage="1"] .demo__pane .demo__step--1,
.demo__body[data-stage="2"] .demo__pane .demo__step--2,
.demo__body[data-stage="3"] .demo__pane .demo__done {
  visibility: inherit;
}
.demo__receipt {
  font-size: 13px;
  color: var(--grey-soft);
}
@media (max-width: 640px) {
  .demo__dots,
  .demo__url {
    display: none;
  }
  .demo__tabs {
    margin-left: 0;
    overflow-x: auto;
    max-width: 100%;
    scrollbar-width: none;
  }
  .demo__tab {
    flex: none;
  }
  .demo__body {
    padding: 18px;
    min-height: 520px;
  }
}

/* ---------------------------------------------------------------- why */
.why {
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.why .h2 {
  margin-top: -12px;
}
.cmp__row {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1.15fr;
  gap: 24px;
  padding: 18px 0;
  border-top: 1px solid var(--ink-rule);
  align-items: baseline;
  font-size: 15px;
  color: var(--grey);
}
.cmp__head {
  border-top: 0;
  padding-top: 0;
}
.cmp__row .cmp__us {
  font-size: 17px;
  color: var(--cream);
}
.cmp__head .cmp__us {
  font-size: 12px;
}
.cmp__lab {
  display: none;
}
@media (max-width: 640px) {
  .cmp__row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .cmp__head {
    display: none;
  }
  .cmp__lab {
    display: inline;
    color: var(--grey);
  }
  .cmp__k {
    color: var(--cream-soft);
  }
}

/* ---------------------------------------------------------------- splits */
.split {
  display: flex;
  flex-wrap: wrap;
  gap: 56px;
  align-items: center;
}
.split--rev {
  flex-wrap: wrap-reverse;
}
.split__copy {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: flex-start;
}
.split__copy .body-lg {
  font-size: 18px;
  max-width: 26em;
}
.split__vis {
  flex: 1 1 440px;
  min-width: 0;
}

/* The yes: five kinds of send, one radio each, ahead of the tabs that work
 * them; each kind's card has its own checkbox, which its Approve label ticks,
 * so it all works without a script. The cards share one grid cell, so the
 * box is as tall as the tallest and switching kinds moves nothing. */
.yesk {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.yesk__tabs {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.yesk__tab {
  border-radius: 999px;
  padding: 7px 13px;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  cursor: pointer;
  color: var(--cream-soft);
  border: 1px solid var(--ink-line);
}
#yk-email:checked ~ .yesk__tabs label[for="yk-email"],
#yk-post:checked ~ .yesk__tabs label[for="yk-post"],
#yk-pay:checked ~ .yesk__tabs label[for="yk-pay"],
#yk-merge:checked ~ .yesk__tabs label[for="yk-merge"],
#yk-reply:checked ~ .yesk__tabs label[for="yk-reply"] {
  background: var(--cream);
  color: var(--ink);
  border-color: var(--cream);
}
#yk-email:focus-visible ~ .yesk__tabs label[for="yk-email"],
#yk-post:focus-visible ~ .yesk__tabs label[for="yk-post"],
#yk-pay:focus-visible ~ .yesk__tabs label[for="yk-pay"],
#yk-merge:focus-visible ~ .yesk__tabs label[for="yk-merge"],
#yk-reply:focus-visible ~ .yesk__tabs label[for="yk-reply"] {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}
.yesk__cards {
  display: grid;
}
.yesk__card {
  grid-area: 1 / 1;
  position: relative;
  display: flex;
  visibility: hidden;
}
#yk-email:checked ~ .yesk__cards .yesk__card--email,
#yk-post:checked ~ .yesk__cards .yesk__card--post,
#yk-pay:checked ~ .yesk__cards .yesk__card--pay,
#yk-merge:checked ~ .yesk__cards .yesk__card--merge,
#yk-reply:checked ~ .yesk__cards .yesk__card--reply {
  visibility: visible;
}
.yes {
  flex: 1;
  min-height: 300px;
  padding: 22px;
  gap: 14px;
  transition: border-color 0.3s;
}
.yes__ask {
  font-size: 20px;
  line-height: 1.3;
}
.yes__mail {
  background: var(--paper);
  color: var(--paper-ink);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.yes__to {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--paper-muted);
}
.yes__body {
  white-space: pre-line;
}
.yes__done {
  display: none;
}
.yes__again {
  color: var(--grey-soft);
  cursor: pointer;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.yes__box:checked ~ .yes {
  border-color: var(--ink-line);
}
.yes__box:checked ~ .yes .yes__waiting {
  display: none;
}
.yes__box:checked ~ .yes .yes__done {
  display: flex;
}
.yes__box:checked ~ .yes .wait-card__head.yes__done {
  color: var(--cream-soft);
}
.yes__box:focus-visible ~ .yes label {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}

/* Every team: the app's board, four columns. One checkbox per waiting card,
 * ahead of the columns: ticked, the card leaves Needs you and its done line
 * shows in Done. Each count is a CSS counter over the cards still showing,
 * printed after them and placed beside the column's name. */
.board {
  flex: 1 1 560px;
  min-width: 0;
  position: relative;
  background: var(--ink);
  border: 1px solid var(--ink-edge);
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr 1fr;
  gap: 10px;
  align-items: start;
}
.board + .split__copy {
  flex: 1 1 360px;
}
.bd__col {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-content: start;
}
.bd__col--wait {
  counter-reset: need;
}
.bd__col--done {
  counter-reset: done;
}
.bd__h {
  grid-row: 1;
  grid-column: 1;
  align-self: baseline;
}
.bd__col--wait .bd__h,
.bd__col--wait .bd__n {
  color: var(--amber);
}
.bd__n {
  grid-row: 1;
  grid-column: 2;
  align-self: baseline;
  font-size: 13px;
  color: var(--grey);
}
.bd__col--wait .bd__n::after {
  content: counter(need);
}
.bd__col--done .bd__n::after {
  content: counter(done);
}
.bd__card {
  grid-column: 1 / -1;
  border: 1px solid var(--ink-edge);
  border-radius: 9px;
  padding: 9px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.bd__t {
  font-size: 13.5px;
  line-height: 1.3;
}
.bd__m {
  font-size: 11.5px;
  color: var(--grey);
}
.bd__card--wait {
  counter-increment: need;
  border-color: var(--amber-edge);
  background: var(--ink-raised);
  gap: 6px;
}
.bd__card--wait .btn {
  align-self: flex-start;
}
.bd__card--done {
  counter-increment: done;
}
.bd__card--did {
  display: none;
}
#q1:checked ~ .bd__col--wait .q--1,
#q2:checked ~ .bd__col--wait .q--2,
#q3:checked ~ .bd__col--wait .q--3,
#q4:checked ~ .bd__col--wait .q--4 {
  display: none;
}
#q1:checked ~ .bd__col--done .d--1,
#q2:checked ~ .bd__col--done .d--2,
#q3:checked ~ .bd__col--done .d--3,
#q4:checked ~ .bd__col--done .d--4 {
  display: flex;
  counter-increment: done;
}
#q1:focus-visible ~ .bd__col--wait .q--1 label,
#q2:focus-visible ~ .bd__col--wait .q--2 label,
#q3:focus-visible ~ .bd__col--wait .q--3 label,
#q4:focus-visible ~ .bd__col--wait .q--4 label {
  outline: 2px solid var(--cream);
  outline-offset: 2px;
}
.bd__clear {
  display: none;
  grid-column: 1 / -1;
  padding: 10px 2px;
  color: var(--cream-soft);
  font-size: 13px;
}
#q1:checked ~ #q2:checked ~ #q3:checked ~ #q4:checked ~ .bd__col--wait .bd__clear {
  display: block;
}
.bd__again {
  background: none;
  border: 0;
  padding: 0;
  min-height: 32px;
  color: var(--cream);
  text-decoration: underline;
  font-size: 13px;
}
@media (max-width: 760px) {
  .board {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------------------------------------------------------------- apps */
.apps {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  text-align: center;
}
.apps .h2 {
  margin-top: -16px;
}
.apps .body-lg {
  margin-top: -8px;
  max-width: 34em;
}
.apps__grid {
  width: 100%;
  max-width: 980px;
}
.appgrid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}
.app {
  aspect-ratio: 1.6;
  background: var(--ink-card);
  border: 1px solid var(--ink-rule);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px;
  font-size: 14px;
  font-weight: 500;
  color: var(--cream-soft);
  line-height: 1.2;
}
.app .logo {
  width: 30px;
  height: 30px;
}
.app--more {
  background: transparent;
  border-color: var(--cream-soft);
  color: var(--cream);
  font-size: 15px;
  font-weight: 600;
}
.apps__doors {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
}
.apps__doors .chip {
  border-color: var(--ink-line);
  padding: 9px 16px;
}
@media (max-width: 640px) {
  .appgrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .app--wide {
    display: none;
  }
}

/* ---------------------------------------------------------------- safe */
.safe {
  display: flex;
  flex-direction: column;
  gap: 36px;
}
.safe .eyebrow,
.safe .h2 {
  text-align: center;
}
.safe .h2 {
  margin-top: -20px;
}
.safe__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
}
.safe__card {
  border: 1px solid var(--ink-edge);
  border-radius: 14px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
  background: var(--ink);
}
.safe__card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 24px;
}
.safe__card p {
  color: var(--grey-soft);
  font-size: 15px;
}
.safe__ring {
  transform-origin: 16px 16px;
}
@media (prefers-reduced-motion: no-preference) {
  .safe__ring {
    animation: dmBreathe 2.4s ease-in-out infinite;
  }
}
.safe__more,
.prices__more {
  align-self: center;
}

/* ---------------------------------------------------------------- prices */
.prices {
  display: flex;
  flex-direction: column;
  gap: 32px;
}
.prices .eyebrow,
.prices .h2 {
  text-align: center;
}
.prices .h2 {
  margin-top: -16px;
}
.seats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}
.seat {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--ink-edge);
  border-radius: 14px;
  padding: 22px;
  color: var(--cream);
}
.seat:hover {
  text-decoration: none;
  border-color: var(--ink-line-hover);
}
.seat--hi {
  border-color: rgba(241, 233, 220, 0.4);
  background: var(--ink-raised);
}
.seat__name {
  font-size: 18px;
  font-weight: 600;
}
.seat__price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  flex-wrap: wrap;
}
.seat__price .was {
  font-size: 18px;
  color: var(--grey);
}
.seat__tag {
  align-self: flex-start;
  font-family: var(--font-label);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream-soft);
  border: 1px solid var(--ink-line);
  border-radius: 999px;
  padding: 3px 8px;
}
.seat__price .amt {
  font-family: var(--font-display);
  font-size: 40px;
  line-height: 1;
}
.seat__price .per,
.seat__for {
  color: var(--grey-soft);
  font-size: 13px;
}
.seat__for {
  font-size: 14px;
}
