/*
 * fulldiary.io: the one stylesheet. FullDiary's own look (V1-FEATURES.md section 10): ink, one blue,
 * Google Sans Flex and Geist Mono, pill buttons at least 44px tall. Light and dark. Nothing is loaded
 * from another address: the two typefaces are files of ours, beside their licences.
 *
 * The page tells one night and one morning: the first screen is the evening a patient writes, the
 * second is the morning after, and the page ends in the evening again. The night parts use the ink
 * ground in both themes.
 */
@font-face {
  font-family: 'Google Sans Flex';
  font-style: normal;
  font-display: swap;
  font-weight: 1 1000;
  src: url('assets/fonts/google-sans-flex-latin-wght-normal.woff2') format('woff2');
}
@font-face {
  font-family: 'Geist Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('assets/fonts/geist-mono-latin-wght-normal.woff2') format('woff2');
}

:root {
  --ink: #0d1b2a;
  --ink-2: #36445a;
  --muted: #566376;
  --line: #e2e7ec;
  --line-strong: #c9d1da;
  --soft: #f4f6f8;
  --soft-2: #e9edf2;
  --bg: #ffffff;
  --blue: #1a4fc4;
  --blue-soft: #e9f0fd;
  --blue-line: #c9d8f7;
  --amber: #8f4a00;
  --amber-soft: #fff3e0;
  --green: #0f7038;
  --green-soft: #e4f4ea;
  --card: #ffffff;
  --shadow: 13, 27, 42;

  /* The night parts: the same in both themes. */
  --night: #0d1b2a;
  --night-deep: #091420;
  --night-panel: #13273b;
  --night-line: rgba(255, 255, 255, 0.13);
  --night-text: #f3f7fb;
  --night-muted: #a9b8c9;
  --sky: #8fb2ff;
  --dawn: linear-gradient(180deg, var(--night) 0, var(--night) 17rem, #1b3156 24rem, #51598c 30rem, #c29fb5 35rem, #f6d5bf 39rem, #fdf0e4 43rem, var(--bg) 49rem);

  --sans: 'Google Sans Flex', 'Helvetica Neue', Arial, sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --wrap: 1200px;
  --pad: clamp(18px, 4.5vw, 40px);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #eef3f8;
    --ink-2: #c6d1dd;
    --muted: #9cacbd;
    --line: #213446;
    --line-strong: #32495f;
    --soft: #101d2b;
    --soft-2: #17283a;
    --bg: #0b1622;
    --blue: #8fb2ff;
    --blue-soft: #14294a;
    --blue-line: #27467d;
    --amber: #ffc988;
    --amber-soft: #3a2707;
    --green: #7ddba6;
    --green-soft: #0f2f1f;
    --card: #101d2b;
    --shadow: 0, 0, 0;
    --night: #0d1b2a;
    --night-deep: #070f18;
    --dawn: linear-gradient(180deg, var(--night) 0, var(--night) 17rem, #14294a 27rem, #1b2f4f 33rem, var(--bg) 49rem);
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 84px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,
h2,
h3,
p,
ul,
ol,
dl,
dd,
figure {
  margin: 0;
}
ul,
ol {
  padding: 0;
  list-style: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
a {
  color: inherit;
}
:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 6px;
}
.hero :focus-visible,
.top :focus-visible,
.dawn__words :focus-visible,
.safety :focus-visible,
.close :focus-visible,
.foot :focus-visible {
  outline-color: var(--sky);
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--pad);
}
/* For a screen reader only. Clipped by its own outline, not by hiding what overflows, so that a measure of
   "what does a box cut off" finds only real faults. */
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  clip-path: inset(50%);
  white-space: nowrap;
  pointer-events: none;
}
.skip {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 40;
  padding: 12px 18px;
  border-radius: 999px;
  background: #ffffff;
  color: #0d1b2a;
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

/* ---------- Type ---------- */
h1,
h2 {
  font-weight: 600;
  letter-spacing: -0.038em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.55rem, 4.2vw + 0.9rem, 4.25rem);
  line-height: 1.02;
}
h2 {
  font-size: clamp(2rem, 3.4vw + 0.9rem, 3.5rem);
  line-height: 1.04;
}
h3 {
  font-size: 1.25rem;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.018em;
}
.lede {
  max-width: 39em;
  color: var(--ink-2);
  font-size: clamp(1.125rem, 0.45vw + 1.02rem, 1.3125rem);
  line-height: 1.45;
  text-wrap: pretty;
}
.lede--night {
  color: var(--night-muted);
}
.label {
  color: var(--muted);
  font: 600 0.75rem/1.3 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.label--night {
  color: var(--night-muted);
}
.clock {
  display: inline-block;
  margin-right: 0.75em;
  padding: 0.3em 0.6em 0.25em;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  color: var(--sky);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.head {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(36px, 5vw, 64px);
}
.head--night h2 {
  color: var(--night-text);
}

/* ---------- Buttons and chips ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font: 600 1rem/1 var(--sans);
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s,
    border-color 0.2s,
    transform 0.2s var(--ease);
}
.btn:active {
  transform: scale(0.98);
}
.btn--small {
  min-height: 44px;
  padding: 0 18px;
  font-size: 0.9375rem;
}
.btn--big {
  min-height: 56px;
  padding: 0 30px;
  font-size: 1.0625rem;
}
.btn--light {
  background: #ffffff;
  color: #0d1b2a;
}
.btn--light:hover {
  background: #dfe9ff;
}
.btn--ghost-night {
  border-color: var(--night-line);
  color: var(--night-text);
}
.btn--ghost-night:hover {
  border-color: rgba(255, 255, 255, 0.5);
}
.chip {
  display: inline-block;
  padding: 0.3em 0.75em 0.25em;
  border-radius: 999px;
  font: 600 0.6875rem/1.3 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.chip--green {
  background: #e4f4ea;
  color: #0f7038;
}
.chip--amber {
  background: var(--amber-soft);
  color: var(--amber);
}
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.dot--green {
  background: #35c26d;
}

/* ---------- The mark ---------- */
.mark-back {
  fill: #ffffff;
}
.mark-first {
  fill: #1a4fc4;
}
.mark-rest {
  fill: #0d1b2a;
}

/* ---------- The agents' pictures. Every one carries its "AI" mark. ---------- */
.face {
  position: relative;
  display: block;
  flex: none;
  width: var(--face, 72px);
  aspect-ratio: 1;
  border-radius: 30%;
  background: var(--soft-2);
}
.face img {
  width: 100%;
  height: 100%;
  border-radius: 30%;
  object-fit: cover;
}
.face__ai {
  position: absolute;
  right: -5%;
  bottom: -5%;
  padding: 0.22em 0.5em 0.2em;
  border: 1px solid #c9d1da;
  border-radius: 999px;
  background: #ffffff;
  color: #0d1b2a;
  font: 600 clamp(8px, calc(var(--face, 72px) * 0.1), 13px) / 1.1 var(--mono);
  letter-spacing: 0.06em;
}
.face--rosie { background: #fbe4ec; }
.face--penny { background: #ffeed2; }
.face--dylan { background: #dfe9fc; }
.face--amy { background: #dcf1e3; }
.face--vera { background: #0d1b2a; }
.face--clara { background: #e9e2fb; }
.face--ben { background: #d9f0ee; }
.face--sam { background: #f1e9d8; }
.face--finn { background: #d9eefa; }
.face--maya { background: #fbe9e0; }
.face--tiny {
  --face: 20px;
  display: inline-block;
  border-radius: 50%;
}
.face--tiny img {
  border-radius: 50%;
}

/* ---------- The top bar ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 27, 42, 0.9);
  color: var(--night-text);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.top__row {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-right: auto;
  font-size: 1.1875rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand__mark {
  flex: none;
}
.top__nav {
  display: none;
  gap: 26px;
  margin-right: 14px;
}
.top__nav a,
.top__in {
  color: var(--night-muted);
  font-size: 0.9375rem;
  font-weight: 500;
  text-decoration: none;
}
.top__nav a:hover,
.top__in:hover {
  color: #ffffff;
}
.top__do {
  display: flex;
  align-items: center;
  gap: 16px;
}
.top__in {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--night-text);
}
@media (min-width: 1020px) {
  .top__nav {
    display: flex;
  }
}
@media (max-width: 359px) {
  .play__window {
    padding-inline: 12px;
  }
  .note-card {
    padding-inline: 12px;
  }
  .slots li {
    padding-inline: 6px;
    font-size: 0.625rem;
  }
  .top__row {
    gap: 10px;
  }
  .brand {
    font-size: 1.0625rem;
  }
  .top__do {
    gap: 10px;
  }
  .btn--small {
    padding: 0 13px;
    font-size: 0.875rem;
  }
}

/* ---------- 1. The first screen ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--night-text);
  padding-block: clamp(40px, 7vw, 92px) clamp(36px, 5vw, 64px);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(46% 54% at 78% 34%, rgba(38, 98, 230, 0.5), rgba(38, 98, 230, 0) 72%);
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/grid.svg') 0 0 / 44px 44px;
  -webkit-mask-image: radial-gradient(70% 80% at 76% 30%, #000 0, transparent 78%);
  mask-image: radial-gradient(70% 80% at 76% 30%, #000 0, transparent 78%);
  opacity: 0.55;
}
.hero > * {
  position: relative;
  z-index: 1;
}
.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(36px, 6vw, 72px);
  align-items: center;
}
.hero__words {
  display: grid;
  gap: 26px;
  justify-items: start;
}
.hero__turn {
  display: block;
  color: var(--sky);
}
.hero__lede {
  max-width: 33em;
  color: #c9d5e3;
  font-size: clamp(1.125rem, 0.5vw + 1.02rem, 1.3125rem);
  line-height: 1.45;
  text-wrap: pretty;
}
.hero__do {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 6px;
}
.hero__foot {
  margin-top: clamp(28px, 4vw, 48px);
  color: #8ea0b4;
  font-size: 0.875rem;
  line-height: 1.5;
  max-width: calc(46em + 2 * var(--pad));
  margin-inline: auto 0;
  margin-left: max(0px, calc((100% - var(--wrap)) / 2));
}
@media (min-width: 1020px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 56px;
  }
}

/* The example that plays: what the patient sees, and under each reply what the clinic sees. */
.play {
  width: 100%;
  max-width: 440px;
  justify-self: center;
  border: 1px solid var(--night-line);
  border-radius: 28px;
  background: linear-gradient(180deg, #172d45 0, #11222f 100%);
  box-shadow:
    0 50px 90px -40px rgba(0, 0, 0, 0.75),
    0 0 0 8px rgba(255, 255, 255, 0.03);
}
.play__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 15px 20px 13px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.play__who {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.play__clock {
  color: var(--sky);
  font: 600 0.75rem/1 var(--mono);
  letter-spacing: 0.06em;
  font-variant-numeric: tabular-nums;
}
.play__window {
  padding: 18px 16px 6px;
}
.play__stream {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.beat {
  display: flex;
  flex-direction: column;
}
.bubble {
  max-width: 88%;
  padding: 10px 14px 11px;
  font-size: 0.9688rem;
  line-height: 1.4;
}
.beat--in .bubble {
  align-self: flex-start;
  border-radius: 18px 18px 18px 6px;
  background: rgba(255, 255, 255, 0.11);
}
.beat--out .bubble {
  align-self: flex-end;
  border-radius: 18px 18px 6px 18px;
  background: #2a61dd;
  color: #ffffff;
}
.beat__mark {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 4px 8px;
  margin-top: 7px;
  color: var(--night-muted);
  font: 500 0.6875rem/1.3 var(--mono);
  letter-spacing: 0.02em;
}
.check {
  color: var(--sky);
  white-space: nowrap;
}
.beat--when {
  flex-direction: row;
  align-items: center;
  gap: 12px;
  margin-block: 6px 2px;
  color: var(--night-muted);
  font: 600 0.6875rem/1 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.beat--when::before,
.beat--when::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--night-line);
}
.note-card {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 14px 16px 15px;
  border-radius: 16px;
  background: #ffffff;
  color: #0d1b2a;
  box-shadow: 0 18px 36px -22px rgba(0, 0, 0, 0.7);
}
.note-card__where {
  color: #566376;
  font: 600 0.6875rem/1.3 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.note-card__title {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.note-card__text {
  color: #36445a;
  font-size: 0.875rem;
  line-height: 1.4;
}
.note-card__chip {
  margin-top: 2px;
}
.slots {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin-block: 4px;
}
.slots li {
  flex: 1;
  padding: 7px 8px 6px;
  border-radius: 8px;
  font: 500 0.6875rem/1.2 var(--mono);
  white-space: nowrap;
}
.slots__free {
  border: 1px dashed #c9d1da;
  color: #566376;
}
.slots__taken {
  flex: 2.2 !important;
  border: 1px solid #c9d8f7;
  background: #e9f0fd;
  color: #0d1b2a;
  font-weight: 600 !important;
}
.play__foot {
  display: grid;
  gap: 10px;
  padding: 12px 20px 18px;
}
.play__small {
  color: #8ea0b4;
  font-size: 0.75rem;
  line-height: 1.45;
}
.play__again {
  justify-self: start;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--night-line);
  border-radius: 999px;
  background: none;
  color: var(--night-text);
  font: 600 0.8125rem/1 var(--sans);
  cursor: pointer;
}
.play__again:hover {
  border-color: rgba(255, 255, 255, 0.5);
}

/* With the script, and where motion is welcome, the example plays in a window of a fixed height. */
.js:not(.calm) .play__window {
  height: 438px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}
.js:not(.calm) .play .beat:not(.is-on) {
  display: none;
}
.js:not(.calm) .play.is-playing .beat.is-on {
  animation: beat-in 0.5s var(--ease) both;
}
.typing .bubble {
  display: inline-flex;
  gap: 5px;
  padding: 15px 16px;
}
.typing i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  animation: typing 1.1s infinite ease-in-out;
}
.typing i:nth-child(2) {
  animation-delay: 0.15s;
}
.typing i:nth-child(3) {
  animation-delay: 0.3s;
}
@keyframes beat-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.98);
  }
}
@keyframes typing {
  0%,
  60%,
  100% {
    opacity: 0.35;
    transform: none;
  }
  30% {
    opacity: 1;
    transform: translateY(-3px);
  }
}

/* ---------- 2. The morning ---------- */
.dawn {
  background: var(--dawn);
  padding-block: clamp(32px, 5vw, 64px) clamp(64px, 9vw, 120px);
}
.dawn__words {
  display: grid;
  gap: 18px;
  margin-bottom: clamp(32px, 4vw, 52px);
  color: var(--night-text);
}
.frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: clamp(14px, 1.6vw, 20px);
  background: #ffffff;
}
.frame img {
  width: 100%;
}
.frame figcaption {
  padding: 13px 18px 14px;
  border-top: 1px solid #e2e7ec;
  background: #f4f6f8;
  color: #36445a;
  font-size: 0.9375rem;
  line-height: 1.45;
}
.frame figcaption strong {
  color: #0d1b2a;
  font-weight: 600;
}
.frame--lift {
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow:
    0 60px 120px -50px rgba(var(--shadow), 0.55),
    0 24px 48px -30px rgba(var(--shadow), 0.4);
}
.trio {
  display: grid;
  gap: 28px clamp(24px, 4vw, 56px);
  margin-top: clamp(40px, 6vw, 72px);
}
.trio li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 18px;
  border-top: 2px solid var(--ink);
}
.trio p {
  color: var(--ink-2);
}
@media (min-width: 800px) {
  .trio {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 3. The team ---------- */
.team {
  padding-block: clamp(24px, 4vw, 48px) clamp(72px, 9vw, 128px);
}
.faces {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(14px, 2.4vw, 28px) clamp(10px, 2vw, 22px);
  margin-bottom: clamp(44px, 6vw, 80px);
}
.faces a {
  display: grid;
  gap: 10px;
  justify-items: center;
  text-decoration: none;
}
.faces .face {
  --face: 100%;
  width: 100%;
  transition: transform 0.35s var(--ease);
}
.faces .face__ai {
  font-size: clamp(8px, 1.1vw, 13px);
}
.faces a:hover .face {
  transform: translateY(-6px) rotate(-1.5deg);
}
.faces__name {
  font-weight: 600;
  letter-spacing: -0.015em;
  font-size: clamp(0.8125rem, 0.5vw + 0.72rem, 1.0625rem);
}
@media (min-width: 900px) {
  .faces {
    grid-template-columns: repeat(10, minmax(0, 1fr));
  }
}

.roster__group {
  padding-block: 28px 12px;
}
.roster__group:first-child {
  padding-top: 0;
}
.member {
  border-top: 1px solid var(--line);
}
.member:last-of-type {
  border-bottom: 1px solid var(--line);
}
.member summary {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 6px 16px;
  padding: 16px 2px;
  cursor: pointer;
  list-style: none;
}
.member summary::-webkit-details-marker {
  display: none;
}
.member summary .face {
  --face: 56px;
  grid-row: span 2;
  align-self: start;
}
.member__who {
  display: grid;
  gap: 4px;
}
.member__name {
  font-size: clamp(1.375rem, 1vw + 1.1rem, 1.75rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}
.member__role {
  color: var(--muted);
  font: 600 0.6875rem/1.3 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.member__says {
  grid-column: 2 / 4;
  color: var(--ink-2);
  font-size: 1.0625rem;
  line-height: 1.35;
}
.member__more {
  position: relative;
  grid-column: 3;
  grid-row: 1;
  width: 28px;
  height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  transition:
    transform 0.3s var(--ease),
    background-color 0.2s;
}
.member__more::before,
.member__more::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 1.5px;
  margin: -0.75px 0 0 -5px;
  background: var(--ink);
}
.member__more::after {
  transform: rotate(90deg);
}
.member[open] .member__more {
  transform: rotate(45deg);
  background: var(--soft-2);
}
.member summary:hover .member__name {
  color: var(--blue);
}
.member__body {
  display: grid;
  gap: 22px;
  padding: 6px 2px 28px;
}
.member__body h3 {
  margin-bottom: 10px;
  color: var(--muted);
  font: 600 0.6875rem/1.3 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.member__body p,
.member__body li {
  color: var(--ink-2);
  font-size: 1rem;
  line-height: 1.5;
}
.ticks {
  display: grid;
  gap: 8px;
}
.ticks li {
  position: relative;
  padding-left: 26px;
  color: var(--ink);
}
.ticks li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: 0.42em;
  width: 11px;
  height: 6px;
  border: solid var(--blue);
  border-width: 0 0 2px 2px;
  transform: rotate(-45deg);
}
.team__after {
  margin-top: 28px;
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (min-width: 860px) {
  .member summary {
    grid-template-columns: 76px minmax(200px, 270px) minmax(0, 1fr) 32px;
    gap: 24px;
    padding: 20px 4px;
  }
  .member summary .face {
    --face: 76px;
    grid-row: auto;
    align-self: center;
  }
  .member__says {
    grid-column: auto;
    font-size: 1.1875rem;
  }
  .member__more {
    grid-column: 4;
    width: 32px;
    height: 32px;
  }
  .member__body {
    grid-template-columns: 1.25fr 1fr 1fr;
    gap: 40px;
    padding: 8px 60px 36px 104px;
  }
}

/* ---------- 4. The product ---------- */
.product {
  background: var(--soft);
  padding-block: clamp(64px, 9vw, 120px);
}
.shots {
  position: relative;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.shots__pick {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.shots__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}
.shots__tabs label {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 500;
  cursor: pointer;
  transition:
    background-color 0.2s,
    color 0.2s,
    border-color 0.2s;
}
.shots__tabs label:hover {
  border-color: var(--ink);
}
#shot-diary:checked ~ .shots__tabs label[for='shot-diary'],
#shot-people:checked ~ .shots__tabs label[for='shot-people'],
#shot-report:checked ~ .shots__tabs label[for='shot-report'],
#shot-setup:checked ~ .shots__tabs label[for='shot-setup'],
#shot-try:checked ~ .shots__tabs label[for='shot-try'] {
  border-color: var(--ink);
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
#shot-diary:focus-visible ~ .shots__tabs label[for='shot-diary'],
#shot-people:focus-visible ~ .shots__tabs label[for='shot-people'],
#shot-report:focus-visible ~ .shots__tabs label[for='shot-report'],
#shot-setup:focus-visible ~ .shots__tabs label[for='shot-setup'],
#shot-try:focus-visible ~ .shots__tabs label[for='shot-try'] {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
.shot {
  display: none;
  box-shadow: 0 40px 90px -50px rgba(var(--shadow), 0.5);
}
#shot-diary:checked ~ .shots__stage .shot--diary,
#shot-people:checked ~ .shots__stage .shot--people,
#shot-report:checked ~ .shots__stage .shot--report,
#shot-setup:checked ~ .shots__stage .shot--setup,
#shot-try:checked ~ .shots__stage .shot--try {
  display: block;
  animation: shot-in 0.45s var(--ease) both;
}
@keyframes shot-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

/* ---------- 5. You decide ---------- */
.control {
  padding-block: clamp(64px, 9vw, 120px);
}
.controls {
  display: grid;
  gap: 20px;
}
.controls > li {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 22px 22px 26px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--card);
}
.controls p {
  color: var(--ink-2);
}
.controls strong {
  color: var(--ink);
  font-weight: 600;
}
.controls__small {
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
}
.toy {
  display: grid;
  place-items: center;
  height: 184px;
  margin-bottom: 10px;
  padding: 18px;
  border-radius: 14px;
  background: var(--soft);
  font-size: 0.875rem;
}
.toy__seg {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: var(--bg);
  font-weight: 600;
}
.toy__seg span {
  padding: 9px 16px;
  border-radius: 999px;
  color: var(--muted);
}
.toy__seg .toy__seg-on {
  background: #1a4fc4;
  color: #ffffff;
}
.toy__pages {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  max-width: 300px;
}
.toy__pages li {
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  background: var(--bg);
  font-weight: 500;
}
.toy__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: min(100%, 250px);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
}
.toy__row--lock {
  border-bottom: 0;
}
.toy__switch {
  position: relative;
  width: 40px;
  height: 24px;
  border-radius: 999px;
  background: var(--line-strong);
}
.toy__switch::after {
  content: '';
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
}
.toy__switch--on {
  background: #17914a;
}
.toy__switch--on::after {
  left: 19px;
}
.toy__always {
  padding: 0.3em 0.75em 0.25em;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font: 600 0.6875rem/1.3 var(--mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.who {
  display: grid;
  gap: 20px;
  margin-top: clamp(36px, 5vw, 56px);
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}
.who dl {
  display: grid;
  gap: 18px clamp(24px, 4vw, 56px);
}
.who dt {
  margin-bottom: 6px;
  color: var(--muted);
  font: 600 0.6875rem/1.3 var(--mono);
  letter-spacing: 0.09em;
  text-transform: uppercase;
}
.who dd {
  color: var(--ink-2);
}
@media (min-width: 900px) {
  .controls {
    grid-template-columns: repeat(3, 1fr);
  }
  .who {
    grid-template-columns: minmax(0, 1fr) minmax(0, 3fr);
  }
  .who dl {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ---------- 6. Safety ---------- */
.safety {
  background: var(--night);
  color: var(--night-text);
  padding-block: clamp(64px, 9vw, 120px);
}
.safety__grid {
  display: grid;
  gap: clamp(36px, 5vw, 72px);
}
.rules {
  counter-reset: rule;
}
.rules li {
  counter-increment: rule;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 6px 8px;
  padding-block: 22px;
  border-top: 1px solid var(--night-line);
}
.rules li:last-child {
  border-bottom: 1px solid var(--night-line);
}
.rules li::before {
  content: '0' counter(rule);
  grid-row: span 2;
  padding-top: 0.42em;
  color: var(--sky);
  font: 600 0.75rem/1 var(--mono);
  letter-spacing: 0.08em;
}
.rules h3 {
  font-size: clamp(1.1875rem, 0.6vw + 1.05rem, 1.4375rem);
  text-wrap: balance;
}
.rules p {
  color: var(--night-muted);
  font-size: 1rem;
}
.frame--night {
  border-color: var(--night-line);
  box-shadow: 0 50px 100px -50px rgba(0, 0, 0, 0.8);
}
.safety__shot {
  align-self: start;
}
@media (min-width: 1000px) {
  .safety__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 470px);
    align-items: start;
  }
  .safety__shot {
    position: sticky;
    top: 96px;
  }
}

/* ---------- 7. How it starts ---------- */
.start {
  padding-block: clamp(64px, 9vw, 120px);
}
.steps {
  display: grid;
  gap: 26px clamp(18px, 2.4vw, 32px);
}
.steps li {
  display: grid;
  gap: 10px;
  align-content: start;
}
.steps p {
  color: var(--ink-2);
  font-size: 1rem;
}
/* The mark is a little diary filling up. Each step fills one more square. */
.steps__fill {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
}
.steps__fill i {
  width: 14px;
  height: 14px;
  border-radius: 4px;
  background: var(--soft-2);
}
.steps li:nth-child(1) .steps__fill i:nth-child(-n + 1),
.steps li:nth-child(2) .steps__fill i:nth-child(-n + 2),
.steps li:nth-child(3) .steps__fill i:nth-child(-n + 3),
.steps li:nth-child(4) .steps__fill i:nth-child(-n + 4),
.steps li:nth-child(5) .steps__fill i:nth-child(-n + 5) {
  background: var(--blue);
}
@media (min-width: 620px) {
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1020px) {
  .steps {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* ---------- 8. One thing to do, and the foot ---------- */
.close {
  position: relative;
  overflow: hidden;
  background: var(--night);
  color: var(--night-text);
  padding-block: clamp(72px, 10vw, 136px);
  text-align: center;
}
.close::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(50% 70% at 50% 0, rgba(38, 98, 230, 0.42), rgba(38, 98, 230, 0) 72%);
}
.close__in {
  position: relative;
  display: grid;
  gap: 22px;
  justify-items: center;
}
.close h2 {
  font-size: clamp(2.6rem, 6vw + 0.8rem, 5.25rem);
  line-height: 1;
}
.close__faces {
  display: flex;
  justify-content: center;
  padding-left: 10px;
  margin-bottom: 10px;
}
.close__faces .face {
  --face: clamp(30px, 7.4vw, 56px);
  margin-left: -10px;
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--night);
}
.close__faces .face img {
  border-radius: 50%;
}
.close__do {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 10px;
}
.foot {
  background: var(--night-deep);
  color: var(--night-muted);
  padding-block: 36px 44px;
  font-size: 0.9375rem;
}
.foot__row {
  display: grid;
  gap: 20px;
}
.foot__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--night-text);
  font-weight: 500;
}
.foot__nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 22px;
}
.foot__nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  text-decoration: none;
}
.foot__nav a:hover {
  color: #ffffff;
}
.foot__small {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #8ea0b4;
  font-size: 0.8125rem;
  line-height: 1.5;
}
@media (min-width: 900px) {
  .foot__row {
    grid-template-columns: auto auto;
    justify-content: space-between;
    align-items: center;
  }
}

/* ---------- Motion: only with the script, and only where it is welcome ---------- */
@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
  .js:not(.calm) .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition:
      opacity 0.8s var(--ease),
      transform 0.8s var(--ease);
  }
  .js:not(.calm) .reveal.is-in {
    opacity: 1;
    transform: none;
  }
  .js:not(.calm) .trio .reveal:nth-child(2),
  .js:not(.calm) .controls .reveal:nth-child(2) {
    transition-delay: 0.08s;
  }
  .js:not(.calm) .trio .reveal:nth-child(3),
  .js:not(.calm) .controls .reveal:nth-child(3) {
    transition-delay: 0.16s;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- The page for an address that is not there ---------- */
.lost {
  background: var(--night);
}
.lost__main {
  display: grid;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
}
.lost h1 {
  font-size: clamp(2.4rem, 5vw + 0.8rem, 4.5rem);
}
