/*
 * More of the app's screens, drawn: the ones the tour shows. Medication on
 * the Lock Screen, a rest day, a day put back, a meal, Patterns, friends,
 * gems, and what an assistant said. Read with phone.css, which sets the
 * app's palette on the phone and draws the ones the home page shares.
 *
 * These rules came from the old stylesheet as they were.
 */
.phone,
.chat {
  --night: #17171a;
  --night-surface: #2c2d30;
  --night-ink: #f6f1e7;
  --night-ink2: #d9d2c3;
  --night-ink3: #a39c90;
  --night-ink4: #3d3830;
  --night-green: #7db497;
  --night-gold: #c4a85a;
  --night-red: #e07f79;
}

/* The page has a label of its own, and a screen's label is the screen's. */
.phone .label {
  font: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}

.chat {
  --ground: #f6f1e7;
  --surface: #ece5d6;
  --ink: #17171a;
  --ink2: #46423c;
  --ink3: #6c6762;
  --ink4: #c4beb6;
  --green: #456b57;
  --red: #a2453a;
  --gold: #72612e;
  --rule: rgba(23, 23, 26, 0.22);
  /* The display face, as the app has it now; the name is the old one. */
  --serif: "Bricolage Grotesque", "Arial Black", "Helvetica Neue", Helvetica, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color: var(--ink);
}

.at {
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
  font-family: var(--serif);
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.at time {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 0.85;
  letter-spacing: -0.04em;
}

.at span {
  font-family: var(--mono);
  font-size: 0.8125rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink3);
}

.slot .phone {
  width: min(100%, 20rem);
}

.today .swept {
  display: grid;
  gap: 0.6cqw;
  margin: 3cqw 0 0;
  padding: 3cqw 3.5cqw;
  border-left: 0.8cqw solid var(--gold);
  background: color-mix(in srgb, var(--gold) 10%, transparent);
}

.today .swept b {
  font-size: 4cqw;
  font-weight: 600;
  color: var(--ink);
}

.today .swept span {
  font-family: var(--mono);
  font-size: 2.9cqw;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
}

.plan .cap {
  font-family: var(--mono);
  font-size: 0.6875rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink3);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
.shield .remark {
    transition: none;
  }
.shield .remark.is-swapping {
    opacity: 1;
  }
}

.meal {
  padding: 0 5cqw;
}

.meal .head b {
  font-family: var(--serif);
  font-size: 7.4cqw;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.meal .shot {
  margin: 3cqw 0 3.5cqw;
  aspect-ratio: 4 / 3;
  border-radius: 3cqw;
  background: var(--surface);
  border: 1px solid var(--rule);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.meal .shot img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.meal .cap {
  font-size: 2.8cqw;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink3);
}

.meal .items {
  margin-top: 1.6cqw;
}

.meal .items li {
  display: flex;
  justify-content: space-between;
  gap: 2cqw;
  padding: 2.2cqw 0;
  border-bottom: 1px solid var(--rule);
  font-size: 3.2cqw;
}

.meal .items .q {
  color: var(--ink3);
  font-family: var(--mono);
  font-size: 2.8cqw;
  white-space: nowrap;
}

.meal .macros {
  display: flex;
  gap: 3cqw;
  margin-top: 3.5cqw;
}

.meal .macros li {
  flex: 1;
}

.meal .macros b {
  display: block;
  font-family: var(--serif);
  font-size: 6cqw;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.meal .macros span {
  display: block;
  font-size: 2.5cqw;
  color: var(--ink3);
  letter-spacing: 0.04em;
}

.meal .keep {
  margin-top: 3.5cqw;
  font-size: 2.6cqw;
  color: var(--ink3);
}

/* The page that loads this no longer loads the stylesheet that reset its
   lists, so the bullets came back and a grid cell picked up the Today
   screen's `.today` padding, which pushed the heat grid out of the screen
   at every width (AHO-636). */
.patterns ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.patterns .grid i {
  padding: 0;
}

.patterns {
  padding: 0 5cqw;
}

.patterns .head b {
  font-family: var(--serif);
  font-size: 8.6cqw;
  font-weight: 700;
  letter-spacing: -0.035em;
}

.patterns .date {
  color: var(--ink3);
  font-size: 3.3cqw;
  padding-bottom: 3cqw;
  border-bottom: 0.5cqw solid var(--ink);
  margin-bottom: 3.5cqw;
}

.patterns .ranges {
  display: flex;
  gap: 1.6cqw;
  margin-bottom: 4cqw;
}

.patterns .ranges li {
  flex: 1;
  text-align: center;
  padding: 1.8cqw 0;
  border: 1px solid var(--rule);
  border-radius: 1.4cqw;
  font-size: 2.8cqw;
  font-weight: 600;
  color: var(--ink3);
}

.patterns .ranges li.on {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ground);
}

.patterns .figures {
  display: flex;
  gap: 4cqw;
  margin-bottom: 4.5cqw;
}

.patterns .figures li {
  flex: 1;
}

.patterns .figures b {
  display: block;
  font-family: var(--serif);
  font-size: 7cqw;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.patterns .figures span {
  display: block;
  font-size: 2.6cqw;
  color: var(--ink3);
  letter-spacing: 0.04em;
}

.patterns .gridwrap {
  display: flex;
  gap: 1.6cqw;
  align-items: stretch;
}

.patterns .days {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 0.4cqw 0 1.2cqw;
  font-size: 2.2cqw;
  color: var(--ink3);
}

.patterns .grid {
  flex: 1;
  display: grid;
  grid-template-rows: repeat(7, 1fr);
  grid-auto-flow: column;
  grid-auto-columns: 1fr;
  gap: 0.9cqw;
}

.patterns .grid i {
  aspect-ratio: 1;
  border-radius: 0.7cqw;
  background: var(--rule);
  opacity: 0.45;
}

.patterns .grid i.on {
  background: var(--green);
  opacity: 1;
}

.patterns .grid i.part {
  background: var(--green);
  opacity: 0.42;
}

.patterns .grid i.off {
  background: var(--rule);
  opacity: 1;
}

.patterns .grid i.paused {
  background: var(--gold);
  opacity: 0.45;
}

.patterns .grid i.today {
  outline: 0.5cqw solid var(--ink);
  outline-offset: 0.3cqw;
}

.patterns .prov {
  margin-top: 3cqw;
  font-size: 2.4cqw;
  color: var(--ink3);
}

.patterns .cap {
  margin-top: 4cqw;
  font-size: 2.8cqw;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--ink3);
}

.patterns .finding {
  margin-top: 1.8cqw;
  padding-top: 2.4cqw;
  border-top: 1px solid var(--rule);
}

.patterns .finding .said {
  font-size: 3.6cqw;
  font-weight: 600;
  line-height: 1.35;
}

.patterns .finding .ev {
  margin-top: 1cqw;
  font-size: 2.6cqw;
  color: var(--ink3);
}

/* The wallpaper is the Home Screen's, dimmed for the lock: lava light at
   the top and basalt at the foot, over the ink. */
.phone .screen.is-lock {
  background:
    radial-gradient(90% 55% at 30% 8%, rgba(242, 106, 27, 0.3) 0%, rgba(242, 106, 27, 0) 60%),
    radial-gradient(80% 60% at 85% 95%, rgba(58, 59, 63, 0.7) 0%, rgba(58, 59, 63, 0) 60%),
    linear-gradient(180deg, #2c2d30 0%, #17171a 55%, #0e0e10 100%);
  color: var(--night-ink);
}

.lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 16cqw 4cqw 5cqw;
}

.lock .padlock {
  width: 3.4cqw;
  height: 4.2cqw;
  opacity: 0.85;
  margin-bottom: 2.5cqw;
}

.lock .lockdate {
  font-size: 4.6cqw;
  font-weight: 500;
  letter-spacing: -0.01em;
  opacity: 0.92;
}

.lock .locktime {
  font-size: 24cqw;
  font-weight: 300;
  line-height: 1;
  letter-spacing: -0.03em;
  margin-top: 0.5cqw;
  font-variant-numeric: tabular-nums;
}

.lock .card {
  margin-top: auto;
  width: 100%;
  background: rgba(23, 23, 26, 0.9);
  border-radius: 6cqw;
  padding: 3.6cqw 4cqw 4cqw;
  color: var(--night-ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.07), 0 8cqw 12cqw rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.lock .card .top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 3cqw;
}

.lock .card .label {
  font-family: var(--mono);
  font-size: 2.3cqw;
  letter-spacing: 0.12em;
  color: var(--night-ink3);
}

.lock .card .headline {
  display: flex;
  align-items: baseline;
  gap: 1.4cqw;
  margin-top: 1cqw;
}

.lock .card .headline .count {
  font-family: var(--mono);
  font-size: 5.6cqw;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--night-ink);
}

.lock .card .headline .to {
  font-size: 3cqw;
  color: var(--night-ink3);
}

.lock .card .subline {
  font-size: 2.8cqw;
  line-height: 1.35;
  color: var(--night-ink3);
  margin-top: 0.8cqw;
}

.lock .card .subline b {
  color: var(--night-ink2);
  font-weight: 600;
}

.lock .card .glyph {
  font-size: 6cqw;
  line-height: 1;
}

.lock .card .fastbar {
  position: relative;
  height: 1.2cqw;
  border-radius: 999px;
  background: var(--night-ink4);
  margin: 4cqw 1.2cqw 0.6cqw;
}

.lock .card .fastbar i {
  position: absolute;
  inset: 0 28% 0 0;
  border-radius: 999px;
  background: var(--night-green);
}

.lock .card .fastbar s {
  position: absolute;
  top: 50%;
  width: 2.6cqw;
  height: 2.6cqw;
  margin: -1.3cqw 0 0 -1.3cqw;
  border-radius: 50%;
  background: var(--night);
  border: 0.5cqw solid var(--night-ink4);
  text-decoration: none;
}

.lock .card .fastbar s.reached {
  background: var(--night-green);
  border-color: var(--night-green);
}

.lock .card .fastbar s.next {
  border-color: var(--night-gold);
}

.lock .card .fastbar .t1 {
  left: 66.7%;
}

.lock .card .fastbar .t2 {
  left: 77.8%;
}

.lock .card .fastbar .t3 {
  left: 88.9%;
}

.lock .card .fastbar .t4 {
  left: 100%;
}

.lock .tools {
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 4cqw 4cqw 0;
}

.lock .tools i {
  width: 12cqw;
  height: 12cqw;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(12px);
}

.block .phone {
  width: 100%;
  max-width: none;
  margin: 0;
  align-self: stretch;
}

.block .screen {
  aspect-ratio: auto;
  border-radius: 0;
  background: var(--cream);
  min-height: 100%;
  display: grid;
  place-items: center;
  padding: clamp(3rem, 7vw, 6rem) 1.25rem;
}

.block .screen.is-shield .shield {
  position: relative;
  inset: auto;
  z-index: 2;
  --u: clamp(1px, 0.16vw, 1.5px);
  padding: 0;
  max-width: 100%;
}

.block .u-mark {
  top: 6%;
  width: 16cqw;
  height: 16cqw;
  border-radius: 3.6cqw;
}

.chat {
  margin: 0;
  max-width: 34rem;
  display: grid;
  gap: 1rem;
}

.chat p {
  padding: 1.1rem 1.4rem;
  border-radius: 8px;
  font-size: clamp(1.125rem, 1.5vw, 1.375rem);
  line-height: 1.45;
  max-width: 86%;
}

.chat .you {
  justify-self: end;
  background: var(--ink);
  color: var(--ground);
  border-bottom-right-radius: 0.35rem;
}

.chat .tool {
  justify-self: start;
  background: var(--surface);
  color: var(--ink);
  border-bottom-left-radius: 0.35rem;
}

body.how .chat .tool {
  background: var(--ground);
}

.voice-chat figcaption {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink3);
}

.voice-chat .tool:empty,
.voice-chat .you:empty {
  visibility: hidden;
}

@media (min-width: 60rem) {
.voice-chat.is-live .tool {
    animation: said-in 320ms ease both;
  }
}

@media (max-width: 59.99rem) {
.voice-chat {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
.voice-chat.is-live .tool { animation: none; }
}

.mk.plain .t { stroke: var(--ink4); stroke-dasharray: 2 2; }

.today li { transition: opacity 0.25s ease, background 0.25s ease; border-radius: 1.5cqw; }

.today ul.is-live li { opacity: 0.4; }

.today ul.is-live li.is-on {
  opacity: 1;
  background: color-mix(in srgb, var(--ink) 6%, transparent);
  margin: 0 -2cqw;
  padding-left: 2cqw;
  padding-right: 2cqw;
  border-top-color: transparent;
}

.today ul.is-live li.is-on + li { border-top-color: transparent; }

.flow .cap {
  margin: 0 0 0.9rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 400;
  letter-spacing: normal;
  text-transform: none;
  color: var(--ink3);
}

.flow .to .tile .ring { width: 2.75rem; height: 2.75rem; }

.protocol .weeks {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2.4cqw;
  margin: 1cqw 0 0;
  padding: 0;
}

.protocol .weeks li {
  aspect-ratio: 1;
  border-radius: 50%;
  border: 0.5cqw solid var(--ink3);
  opacity: 0.45;
}

.protocol .weeks .kept {
  background: var(--green);
  border-color: var(--green);
  opacity: 1;
}

.protocol .weeks .paused {
  border-style: dashed;
}

.protocol .weeks + .sub { margin-top: 3cqw; }

@keyframes said-in {
  from { opacity: 0; transform: translateY(0.4rem); }
  to { opacity: 1; transform: none; }
}
