/* The page of every feature (views/everything.templ, everything.js) on Daybook's tokens, as the old site had it and
   simpler: the heading at the homepage's size, the three it brings together named under it (the one each answer is
   about lit), the question, written as a message, and its answer ("Yes." large in the field's text, then the feature), which keeps its
   room so nothing under it moves. Then the three side by side, each with its list, its rows level across the three; then one schedule, one login, one
   look: the three as circles that come together, the place all three meet in the page's field (saffron), unamotion in
   it. Inter Tight only; type keeps a 15px floor; no icon moves. */

.ev-page p {
  margin: 0;
}

/* ---------------------------------------------------------------- the heading, the three, the box and its answer */
.ev-ask {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 40px;
  text-align: center;
}
.ev-title {
  max-width: 11em;
  margin: 0;
  font-size: calc(var(--db-size-display) * 0.8);
  text-wrap: balance;
}
/* the three: the one the answer belongs to in the field's text, underlined; the others quiet */
.ev-ask .ev-trio {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0 0.35em;
  margin-top: 24px;
  font: 500 clamp(1.375rem, 1.1rem + 1vw, 2rem) / 1.25 var(--font-db);
  letter-spacing: -0.03em;
}
.ev-trio button {
  padding: 0;
  border: 0;
  border-radius: 4px;
  background: none;
  color: var(--db-fg-3);
  cursor: pointer;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline 2px transparent;
  text-underline-offset: 0.22em;
  transition: color var(--duration-db) var(--ease-db), text-decoration-color var(--duration-db) var(--ease-db);
}
.ev-trio button:hover {
  color: var(--db-fg);
}
.ev-trio button[aria-pressed="true"] {
  color: var(--db-field-text);
  text-decoration-color: currentColor;
}
.ev-trio button:focus-visible {
  outline: 2px solid var(--db-focus);
  outline-offset: 3px;
}
.ev-trio__op {
  color: var(--db-fg-3);
}

/* the question: a message to unamotion, not a search: a card with room for two lines, written left to right, and Ask in
   the field at its foot (its hover the field's own, so the arrow keeps its contrast) */
.ev-q {
  box-sizing: border-box;
  display: flex;
  align-items: flex-end;
  gap: 16px;
  width: min(100%, 620px);
  margin-top: 40px;
  padding: 20px 16px 16px 24px;
  border-radius: var(--radius-db-card);
  background: var(--db-raised);
  box-shadow: 0 0 0 1px var(--db-edge-2), var(--shadow-db-float);
  text-align: left;
  transition: box-shadow var(--duration-db) var(--ease-db);
}
.ev-q:focus-within {
  box-shadow: 0 0 0 2px var(--db-focus), var(--shadow-db-float);
}
.ev-q textarea {
  flex: 1;
  min-width: 0;
  height: calc(2 * 1.35em);
  margin: 0 0 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--db-fg);
  outline: none;
  resize: none;
  overflow: hidden;
  font: 400 22px/1.35 var(--font-db);
  letter-spacing: -0.015em;
}
.ev-q textarea::placeholder {
  color: var(--db-fg-3);
}
.ev-q__go.db-btn {
  --_bg: var(--db-field);
  --_fg: var(--db-field-ink);
  --_hover: var(--db-field-hover);
  flex: none;
}

/* the answer: "Yes." large, then the feature; its room stays the same whatever it says */
.ev-ans {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  min-height: 156px;
  margin-top: 32px;
  transition: opacity 0.2s var(--ease-db), translate 0.2s var(--ease-db);
}
.ev-ans.is-out {
  opacity: 0;
  translate: 0 8px;
}
.ev-ans__head {
  color: var(--db-field-text);
  font: 500 clamp(3.25rem, 2rem + 4.4vw, 5.5rem) / 1 var(--font-db);
  letter-spacing: -0.05em;
}
.ev-ans.is-no .ev-ans__head,
.ev-ans.is-ask .ev-ans__head {
  color: var(--db-fg);
}
.ev-ans__t {
  max-width: 28em;
  font: 500 22px/1.25 var(--font-db);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ev-ans__d {
  max-width: 44ch;
  color: var(--db-fg-2);
  font: 400 18px/1.45 var(--font-db);
  text-wrap: balance;
}
.ev-ans__head:empty,
.ev-ans__t:empty,
.ev-ans__d:empty {
  display: none;
}
/* a yes or a not yet says only that and the feature's name; what happens stays in the page for its script-less reading
   and for "Ask us" */
.ev-ans.is-yes .ev-ans__d,
.ev-ans.is-no .ev-ans__d {
  display: none;
}
.ev-ans.is-hint .ev-ans__d {
  color: var(--db-fg-3);
}

/* ---------------------------------------------------------------- the three, side by side, each with its list */
/* each column shares the row's twelve rows (title, pitch, nine features, its page), so every row and every page link
   sits level across the three, however its words wrap */
.ev-cols__row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto minmax(0, 1fr);
  grid-template-rows: repeat(12, auto);
  gap: 0 clamp(16px, 2vw, 32px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.ev-cols__op {
  align-self: start;
  color: var(--db-field-text);
  font: 500 clamp(2.25rem, 1.5rem + 2vw, 3.25rem) / 1.05 var(--font-db);
}
.ev-pillar {
  display: grid;
  grid-row: span 12;
  grid-template-rows: subgrid;
  scroll-margin-top: 96px;
}
.ev-pillar__t {
  margin: 0;
}
.ev-pillar .ev-pillar__d {
  margin-top: 12px;
  color: var(--db-fg-2);
  font: 400 17px/1.45 var(--font-db);
  text-wrap: balance;
}
.ev-pillar__list {
  display: grid;
  grid-row: span 9;
  grid-template-rows: subgrid;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
.ev-pillar__list li {
  padding: 14px 0;
  border-top: 1px solid var(--db-edge-2);
  font: 500 19px/1.3 var(--font-db);
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.ev-pillar__list a,
a.ev-pillar__go {
  color: inherit;
  text-decoration: underline 1px var(--db-edge-2);
  text-underline-offset: 4px;
  transition: text-decoration-color var(--duration-db) var(--ease-db);
}
.ev-pillar__list a:hover,
a.ev-pillar__go:hover {
  text-decoration-color: currentColor;
}
/* under the list, its page (bookings: many more), in the ink, level across the three */
.ev-pillar__go {
  padding-top: 18px;
  border-top: 1px solid var(--db-edge-2);
  color: var(--db-fg);
  font: 500 17px/1.3 var(--font-db);
  letter-spacing: -0.01em;
}
p.ev-pillar__go {
  color: var(--db-fg-2);
  font-weight: 400;
}

/* ---------------------------------------------------------------- one schedule, one login, one look: the diagram */
/* three circles in the ink, their overlaps deepening on their own (the tints add up); where all three meet, the field,
   unamotion in it (everything.js moves them together) */
.ev-three {
  text-align: center;
}
.ev-three__title {
  max-width: 16em;
  margin: 0 auto;
  text-wrap: balance;
}
.ev-venn {
  display: block;
  width: min(100%, 640px);
  height: auto;
  margin: clamp(32px, 4vw, 56px) auto 0;
  overflow: visible;
}
.ev-venn__c {
  fill: var(--db-fg);
  fill-opacity: 0.035;
  stroke: var(--db-fg);
  stroke-opacity: 0.22;
  stroke-width: 1.5;
}
.ev-venn__core {
  fill: var(--db-field);
}
.ev-venn__mark {
  fill: var(--db-field-ink);
  font: 600 28px/1 var(--font-db);
  letter-spacing: -0.04em;
  pointer-events: none;
}
.ev-venn__una {
  fill-opacity: 0.6;
}
.ev-venn__name {
  fill: var(--db-fg);
  font: 500 26px/1 var(--font-db);
  letter-spacing: -0.035em;
  pointer-events: none;
}
.ev-venn__icon {
  fill: none;
  stroke: var(--db-fg-2);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
}

/* narrower than a laptop: the three stack, the plus between them */
@media (max-width: 59.99rem) {
  .ev-cols__row {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: none;
    gap: 0;
  }
  .ev-cols__op {
    justify-self: start;
    padding: 24px 0 16px;
  }
  .ev-pillar {
    display: flex;
    grid-row: auto;
    flex-direction: column;
  }
  .ev-pillar__list {
    display: block;
  }
}
@media (max-width: 47.99rem) {
  .ev-ask {
    padding-top: 24px;
  }
  /* a phone: the question has the card's width, Ask under it at the right */
  .ev-q {
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-top: 28px;
    padding: 16px 12px 12px 18px;
    gap: 8px;
  }
  .ev-q textarea {
    flex-basis: 100%;
    font-size: 18px;
  }
  .ev-ans {
    min-height: 176px;
    margin-top: 28px;
  }
  .ev-ans__t {
    font-size: 20px;
  }
  .ev-ans__d {
    font-size: 17px;
  }
  /* the diagram is drawn at about half size: its words larger, so they stay at 15px or more */
  .ev-venn__name,
  .ev-venn__mark {
    font-size: 34px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .ev-ans,
  .ev-trio button {
    transition: none;
  }
}
