/* Finn page. One column, big type, plain talk, plus two side-by-side moments. The engine in scrollcraft.css is untouched. */

@font-face {
  font-family: "Space Grotesk";
  src: url("space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --sc-canvas: #F7F7F5;
  --sc-surface: #FFFFFF;
  --sc-ink: #0E0E14;
  --sc-ink-soft: #45444E;
  --sc-accent: #5E10EC;
  --sc-accent-ink: #FFFFFF;
  --sc-font-display: "Space Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --sc-font-text: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", sans-serif;
  --sc-shadow-color: 250 30% 10%;

  --violet: #5E10EC;
  --violet-deep: #4C0BC4;
  --night: #0E0E14;
  --bubble-in: #E9E8ED;

  /* The floor: nothing a visitor has to read goes below 20px on a phone. */
  --t-body: clamp(1.25rem, 1.08rem + .7vw, 1.625rem);
  --t-lead: clamp(1.4375rem, 1.15rem + 1.15vw, 2.125rem);
  --t-h3: clamp(1.875rem, 1.35rem + 2vw, 3.25rem);
  --t-h2: clamp(2.5rem, 1.45rem + 4.9vw, 5.75rem);
  --t-h1: clamp(2.45rem, 10.9vw, 7.25rem);
  --t-bubble: clamp(1.25rem, 1.12rem + .5vw, 1.5rem);
  --t-small: clamp(1.0625rem, 1rem + .25vw, 1.25rem);

  --bar: 4.5rem;
  --col: min(calc(100vw - 2.5rem), 60rem);
}
@media (max-width: 700px) { :root { --bar: 3.75rem; } }

html { background: var(--sc-canvas); scroll-behavior: auto; scroll-padding-top: calc(var(--bar) + 1rem); }
/* No rubber-band at the page edges on a mouse or trackpad. Phones keep their native pull. */
@media (hover: hover) and (pointer: fine) { html { overscroll-behavior-y: none; } }
body { background: var(--sc-canvas); color: var(--sc-ink); font-size: var(--t-body); line-height: 1.5; letter-spacing: -.008em; }

/* --------------------------------------------------------------- top bar */
.bar {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--bar);
  z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding-inline: max(1.25rem, calc((100vw - 60rem) / 2));
  background: var(--sc-canvas);
  border-bottom: 1px solid rgba(14, 14, 20, .08);
}
.mark { line-height: 0; display: block; }
.mark img { height: clamp(1.5rem, 1.2rem + .8vw, 2rem); width: auto; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-block;
  background: var(--violet);
  color: #fff;
  font-family: var(--sc-font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 1.2rem + .7vw, 1.75rem);
  letter-spacing: -.02em;
  line-height: 1;
  padding: 1.125em 1.75em;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(14, 14, 20, .12), 0 14px 30px -14px rgba(94, 16, 236, .7);
  transition: background-color 140ms var(--sc-ease-out), transform 120ms var(--sc-ease-out);
}
.btn--small {
  font-size: clamp(1.0625rem, 1rem + .3vw, 1.25rem);
  padding: .75em 1.25em;
  box-shadow: none;
}
@media (hover: hover) and (pointer: fine) { .btn:hover { background: var(--violet-deep); } }
.btn:active { transform: scale(.97); }

/* ------------------------------------------------------------------- type */
.h1 {
  font-family: var(--sc-font-display);
  font-weight: 500;
  font-size: var(--t-h1);
  line-height: .98;
  letter-spacing: -.045em;
  margin: 0;
}
.h2 {
  font-family: var(--sc-font-display);
  font-weight: 500;
  font-size: var(--t-h2);
  line-height: 1.02;
  letter-spacing: -.038em;
  margin: 0;
  text-wrap: balance;
}
.h2--huge { font-size: clamp(3.25rem, 1.5rem + 7.2vw, 7.5rem); line-height: .98; letter-spacing: -.045em; }
.h3 {
  font-family: var(--sc-font-display);
  font-weight: 500;
  font-size: var(--t-h3);
  line-height: 1.06;
  letter-spacing: -.032em;
  margin: 0;
  text-wrap: balance;
}
.lead {
  font-size: var(--t-lead);
  line-height: 1.34;
  letter-spacing: -.016em;
  color: var(--sc-ink);
  margin: clamp(1.25rem, 2.5vw, 2rem) 0 0;
  text-wrap: pretty;
}
.body { font-size: var(--t-body); line-height: 1.45; color: var(--sc-ink-soft); margin: .625rem 0 0; text-wrap: pretty; }
.small { font-size: var(--t-small); line-height: 1.45; color: var(--sc-ink-soft); margin: 1.5rem 0 0; }

/* --------------------------------------------------------------- sections */
.col { width: var(--col); margin-inline: auto; }
.sect { padding-block: clamp(5rem, 11vw, 10rem); }
.sect--white { background: #fff; }
.sect--violet { background: var(--violet); color: #fff; --sc-ink: #fff; --sc-ink-soft: #E9E1FB; --sc-accent: #fff; --sc-accent-ink: #15101F; }
.sect--violet .lead { color: #fff; }
.sect--ink { background: var(--night); color: #F4F3F7; --sc-ink: #F4F3F7; --sc-ink-soft: #C4C2CE; --sc-accent: #C1A0FF; --sc-accent-ink: #15101F; }
.sect--ink .lead { color: #F4F3F7; }
.sect--ink a { color: #C1A0FF; }

/* ------------------------------------------------------------------- hero */
.hero {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--bar) + clamp(1.5rem, 5vh, 4rem));
}
.hero .lead { margin-top: clamp(1rem, 2.4vh, 1.75rem); max-width: 44rem; }
.hero .btn { margin-top: clamp(1.25rem, 3vh, 2.25rem); }
@media (min-width: 768px) and (min-height: 600px) { .hero { padding-bottom: 1rem; } }

/* ---------------------------------------------------- the two scroll moments
   Headlines only ever get added. Each one has its place from the start, so nothing
   moves when one appears, and nothing ever disappears. Stacked with normal scrolling
   by default. Side by side and pinned when the screen has room (see the end of this block). */
.split { width: var(--col); margin-inline: auto; display: flex; flex-direction: column; }
.adds { display: grid; gap: clamp(1rem, 3vw, 1.5rem); }
.add {
  margin: 0;
  font-family: var(--sc-font-display);
  font-weight: 500;
  font-size: clamp(1.875rem, 1.6rem + 1.2vw, 2.5rem);
  line-height: 1.06;
  letter-spacing: -.035em;
  text-wrap: balance;
  opacity: 0;
  transform: translate3d(0, 12px, 0);
  transition: opacity 420ms var(--sc-ease-out), transform 520ms var(--sc-ease-out);
}
.add.is-on { opacity: 1; transform: none; }
.nb { white-space: nowrap; }

/* ----- one text, start to finish ----- */
.act-story { padding-block: 3.5rem 4.5rem; }
.act-story .adds { margin-bottom: 2.25rem; order: -1; }
.phone {
  position: relative;
  align-self: center;
  width: min(84vw, 21rem);
  height: min(42rem, 88vh);
  height: min(42rem, 88svh);
  background: #fff;
  border-radius: 2.25rem;
  border: .4375rem solid #0E0E14;
  box-shadow: 0 4px 10px rgba(14, 14, 20, .1), 0 40px 80px -24px rgba(14, 14, 20, .4);
  overflow: hidden;
}
.phone__head { position: relative; z-index: 1; background: #fff; }
/* When the thread scrolls up on a short screen, bubbles fade out under the header instead of leaving a sliver. */
.phone__head::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 1.25rem; background: linear-gradient(#fff, rgba(255, 255, 255, 0)); pointer-events: none; }
.phone__head, .chat__head {
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid rgba(14, 14, 20, .08);
}
.avatar { width: 2.75rem; height: 2.75rem; border-radius: 50%; flex: none; background: #fff url("fish.svg") center / 100% no-repeat; }
.phone__who { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.phone__who b { font-weight: 600; font-size: 1.25rem; letter-spacing: -.015em; }
.phone__who small { font-size: 1.0625rem; color: var(--sc-ink-soft); }
/* position: relative so a bubble's offsetTop is always measured from here, moved or not. */
.phone__log { position: relative; padding: 1.25rem 1rem; display: flex; flex-direction: column; gap: .375rem; transition: transform 320ms cubic-bezier(.3, 0, .15, 1); }

.msg {
  width: fit-content;
  max-width: 86%;
  padding: .625rem 1rem;
  border-radius: 1.375rem;
  font-size: var(--t-bubble);
  line-height: 1.3;
  letter-spacing: -.01em;
  overflow-wrap: anywhere;
}
.msg a { color: inherit; text-decoration: underline; text-underline-offset: .15em; }
.msg--you { align-self: flex-end; background: var(--violet); color: #fff; border-bottom-right-radius: .4rem; margin-left: auto; }
.msg--finn { background: var(--bubble-in); color: #0E0E14; border-bottom-left-radius: .4rem; }
.msg--you + .msg--finn, .msg--finn + .msg--you, .typing + .msg--finn { margin-top: .625rem; }

/* The link he texts back unfurls into a preview of the fixed page, like any link in a text. */
.msg--link { width: 86%; padding: 0; overflow: hidden; background: #fff; border: 1px solid rgba(14, 14, 20, .14); color: #0E0E14; border-bottom-left-radius: .4rem; }
.msg--link > b { display: block; padding: .5rem .875rem 0; font-weight: 600; }
.msg--link > span { display: block; padding: 0 .875rem .625rem; color: var(--sc-ink-soft); font-size: 1.0625rem; }
.preview { background: #F4EFE6; color: #1F1A14; padding: .875rem 1rem 1rem; }
.preview__brand { margin: 0 0 .5rem; font-family: var(--sc-font-display); font-weight: 600; font-size: 1.0625rem; letter-spacing: -.02em; }
.preview__big { margin: 0 0 .75rem; font-family: var(--sc-font-display); font-weight: 500; font-size: clamp(1.875rem, 1.5rem + .9vw, 2.375rem); line-height: 1; letter-spacing: -.04em; }
.preview__big span { color: var(--violet); }
.preview__cta { display: inline-block; background: #1F1A14; color: #F4EFE6; font-weight: 600; font-size: 1rem; line-height: 1.2; padding: .4375rem 1rem; border-radius: 2rem; }

.phone__log .msg, .phone__log .typing { display: none; }
.phone__log .msg.on { display: block; animation: pop 240ms var(--sc-ease-out) both; }
.phone__log .typing.on { display: inline-flex; animation: pop 200ms var(--sc-ease-out) both; }
@keyframes pop {
  from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.97); }
  to { opacity: 1; transform: none; }
}
.typing {
  display: inline-flex;
  width: fit-content;
  background: var(--bubble-in);
  border-radius: 1.375rem;
  border-bottom-left-radius: .4rem;
  padding: .875rem 1.0625rem;
  gap: 5px;
  margin-top: .625rem;
}
.typing i { width: 9px; height: 9px; border-radius: 50%; background: #8C8A96; animation: blink 1.2s infinite both; }
.typing i:nth-child(2) { animation-delay: .16s; }
.typing i:nth-child(3) { animation-delay: .32s; }
@keyframes blink { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }

/* ------------------------------------------------------- the to-do list */
.act-list { background: var(--violet); color: #fff; --sc-ink: #fff; padding-block: 4.5rem; }
.act-list .split { gap: clamp(1rem, 3vw, 1.5rem); }
/* Stacked: the first three headlines, then the list, then "Done" underneath it. */
.act-list .adds { display: contents; }
.act-list .add { order: 1; }
.act-list .add:last-child { order: 3; margin-top: .75rem; }
/* A real checklist: a white sheet with ruled rows. */
.todo {
  order: 2;
  list-style: none;
  margin: 1rem 0;
  padding: .25rem 1.25rem;
  background: #fff;
  color: #0E0E14;
  --sc-ink: #0E0E14;
  border-radius: 1.25rem;
  box-shadow: 0 2px 6px rgba(14, 14, 20, .14), 0 30px 60px -24px rgba(14, 14, 20, .6);
  opacity: 0;
  transition: opacity 360ms var(--sc-ease-out);
}
.is-in .todo { opacity: 1; }
.todo li {
  display: flex;
  align-items: flex-start;
  gap: clamp(.75rem, 1.6vw, 1rem);
  padding-block: 1rem;
  opacity: 0;
  transform: translate3d(0, 14px, 0);
  transition: opacity 160ms ease-out, transform 160ms ease-out;
}
.todo li + li { border-top: 1px solid rgba(14, 14, 20, .12); }
.todo li:nth-child(2) { --i: 1; }
.todo li:nth-child(3) { --i: 2; }
.todo li:nth-child(4) { --i: 3; }
.todo li:nth-child(5) { --i: 4; }
.is-in .todo li {
  opacity: 1;
  transform: none;
  transition:
    opacity 380ms var(--sc-ease-out) calc(var(--i, 0) * 90ms + 120ms),
    transform 480ms var(--sc-ease-out) calc(var(--i, 0) * 90ms + 120ms);
}
.todo__box {
  flex: none;
  width: clamp(1.5rem, 1.3rem + .6vw, 1.75rem);
  height: clamp(1.5rem, 1.3rem + .6vw, 1.75rem);
  margin-top: .125em;
  border-radius: .375rem;
  border: 2px solid #8C8A96;
  transition: background-color 160ms var(--sc-ease-out), border-color 160ms var(--sc-ease-out), transform 200ms var(--sc-ease-out);
}
.todo li.done .todo__box {
  background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12.6 10 17.5 19.2 7' fill='none' stroke='%23fff' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 92% no-repeat;
  border-color: var(--violet);
  transform: scale(1.06);
}
.todo__text { display: block; min-width: 0; line-height: 1.18; text-wrap: balance; }
.todo__what {
  font-family: var(--sc-font-display);
  font-weight: 500;
  font-size: clamp(1.375rem, 1.2rem + .9vw, 1.75rem);
  line-height: 1.12;
  letter-spacing: -.025em;
  /* A strike that follows each wrapped line. */
  background: linear-gradient(#0E0E14, #0E0E14) no-repeat 0 58% / 0% max(2px, .07em);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  transition: background-size 340ms var(--sc-ease-out), opacity 200ms var(--sc-ease-out);
}
.todo li.done .todo__what { background-size: 100% max(2px, .07em); opacity: .6; }
.todo__note { display: grid; font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.25; margin-top: .1875rem; }
.note-wait, .note-done { grid-area: 1 / 1; transition: opacity 110ms ease-out; }
.note-wait { color: #5D5C66; }
.note-done { opacity: 0; font-weight: 600; color: var(--violet); }
.todo li.done .note-wait { opacity: 0; }
.todo li.done .note-done { opacity: 1; transition: opacity 240ms var(--sc-ease-out) 130ms; }

/* ----- with room on screen: side by side and pinned -----
   finn.js reads this same condition, so keep the two in step. */
@media (min-width: 768px) and (min-height: 600px) {
  .act-story, .act-list { padding: 0; }
  /* The empty band at the top of the stage slides up behind the hero, so the phone peeks under the button. */
  .act-story { height: 210vh; margin-top: calc(var(--bar) * -1); }
  .act-list { height: 230vh; }
  .stage {
    position: sticky;
    top: 0;
    height: 100vh;
    height: 100svh;
    overflow: clip;
    display: flex;
    align-items: center;
    padding-top: var(--bar);
  }
  .split { display: grid; align-items: center; column-gap: clamp(2.5rem, 5vw, 4.5rem); }

  .act-story .split { grid-template-columns: clamp(19rem, 30vw, 24rem) minmax(0, 1fr); }
  .act-story .adds { order: 0; margin: 0; gap: clamp(1.25rem, 4.5vh, 3rem); }
  .act-story .add { font-size: clamp(2rem, min(1rem + 2.4vw, 6.6vh), 3.125rem); }
  .phone {
    width: 100%;
    height: min(calc(100vh - var(--bar) - 3rem), 50rem);
    height: min(calc(100svh - var(--bar) - 3rem), 50rem);
    border-radius: 2.75rem;
    border-width: .5rem;
  }

  .act-list .split { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 0 clamp(2rem, 4vw, 3.5rem); }
  .act-list .adds { display: grid; gap: clamp(.875rem, 3vh, 2rem); }
  .act-list .add, .act-list .add:last-child { order: 0; margin: 0; }
  .act-list .add { font-size: clamp(1.625rem, min(.9rem + 1.85vw, 5.2vh), 2.5625rem); }
  .todo { order: 0; margin: 0; padding: .25rem clamp(1rem, 2vw, 1.625rem); }
  .todo li { padding-block: clamp(.625rem, 1.9vh, 1.125rem); }
  .todo__box { width: clamp(1.5rem, min(.95rem + .7vw, 3.4vh), 1.75rem); height: clamp(1.5rem, min(.95rem + .7vw, 3.4vh), 1.75rem); }
  .todo__what { font-size: clamp(1.25rem, min(.8rem + 1vw, 3.1vh), 1.75rem); }
  .todo__note { font-size: clamp(1.0625rem, min(.95rem + .35vw, 2.4vh), 1.25rem); }
}

/* ------------------------------------------------------------ how it works */
.steps { list-style: none; margin: clamp(2.5rem, 5vw, 4.5rem) 0 0; padding: 0; display: grid; gap: clamp(3rem, 6vw, 5rem); }
.steps__n {
  display: block;
  font-family: var(--sc-font-display);
  font-weight: 500;
  font-size: clamp(3.5rem, 2rem + 6vw, 7rem);
  line-height: 1;
  letter-spacing: -.05em;
  color: var(--violet);
  margin-bottom: .25em;
}
.cta-row { margin: clamp(3rem, 6vw, 5rem) 0 0; }

/* ----------------------------------------------------- what you'd text him */
.ex { margin-top: clamp(4rem, 9vw, 7.5rem); display: flex; flex-direction: column; }
.ex .msg--big { margin-top: 1.25rem; }
.ex .msg--you.msg--big { margin-top: clamp(1.5rem, 3vw, 2.25rem); }
.msg--big { font-size: clamp(1.375rem, 1.15rem + .9vw, 1.875rem); padding: .875rem 1.375rem; border-radius: 1.75rem; line-height: 1.25; max-width: min(88%, 44rem); }
.msg--you.msg--big { border-bottom-right-radius: .5rem; }
.msg--finn.msg--big { border-bottom-left-radius: .5rem; align-self: flex-start; }
.ex .msg--you + .msg--finn { margin-top: .75rem; }

/* ------------------------------------------------------------- the points */
.point { margin-top: clamp(3rem, 6vw, 5rem); padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid rgba(14, 14, 20, .12); }

/* -------------------------------------------------- the apps he works on */
.apps { margin-top: clamp(3rem, 6vw, 5rem); }
.apps__row {
  list-style: none;
  margin: clamp(1.25rem, 2.6vw, 2rem) 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 7.5rem));
  gap: clamp(.625rem, 2vw, 1.5rem);
}
.apps__row li {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 22%;
  box-shadow: 0 12px 26px -14px rgba(14, 14, 20, .55);
}
.apps__row img { width: 64%; height: 64%; object-fit: contain; }

/* --------------------------------------------------------------- numbers */
.num { margin-top: clamp(3rem, 6vw, 5rem); }
.num__big {
  margin: 0;
  font-family: var(--sc-font-display);
  font-weight: 500;
  font-size: clamp(4.25rem, 2rem + 9vw, 9rem);
  line-height: .98;
  letter-spacing: -.05em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}
.lead--strong { margin-top: clamp(3rem, 6vw, 5rem); font-weight: 500; }

/* ----------------------------------------------------------------- trust */
.checks { list-style: none; margin: clamp(2rem, 4vw, 3rem) 0 0; padding: 0; display: grid; gap: clamp(1.25rem, 2.4vw, 1.875rem); }
.checks li {
  position: relative;
  padding-left: clamp(2.5rem, 2rem + 1.4vw, 3.5rem);
  font-size: var(--t-lead);
  line-height: 1.3;
  letter-spacing: -.016em;
  text-wrap: pretty;
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0; top: .1em;
  width: clamp(1.75rem, 1.5rem + .8vw, 2.5rem);
  height: clamp(1.75rem, 1.5rem + .8vw, 2.5rem);
  border-radius: 50%;
  background: var(--violet) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6.5 12.6 10.5 16.5 17.8 8' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 100% no-repeat;
}

/* ------------------------------------------------------------------- faq */
.faq { margin-top: clamp(2rem, 4vw, 3rem); border-bottom: 1px solid rgba(14, 14, 20, .14); }
.faq details { border-top: 1px solid rgba(14, 14, 20, .14); }
.faq summary {
  cursor: pointer;
  list-style: none;
  position: relative;
  padding: clamp(1.25rem, 2.2vw, 1.75rem) 3rem clamp(1.25rem, 2.2vw, 1.75rem) 0;
  font-size: var(--t-lead);
  line-height: 1.22;
  letter-spacing: -.018em;
  font-weight: 500;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: .25rem; top: 50%;
  transform: translateY(-50%);
  font-size: 2.25rem;
  font-weight: 300;
  line-height: 1;
  color: var(--violet);
  transition: transform 160ms var(--sc-ease-out);
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { margin: 0; padding: 0 3rem clamp(1.5rem, 2.6vw, 2rem) 0; font-size: var(--t-body); line-height: 1.45; color: var(--sc-ink-soft); text-wrap: pretty; }
.faq summary:focus-visible { outline-offset: 4px; }

/* ------------------------------------------------------------------ chat */
.sect--close { padding-bottom: clamp(3rem, 6vw, 5rem); }
.chat {
  margin-top: clamp(2rem, 4vw, 3.25rem);
  background: #fff;
  border: 1px solid rgba(14, 14, 20, .1);
  border-radius: 2rem;
  box-shadow: 0 2px 6px rgba(14, 14, 20, .05), 0 40px 80px -40px rgba(14, 14, 20, .35);
  display: flex;
  flex-direction: column;
  height: min(46rem, calc(100svh - var(--bar) - 2rem));
  overflow: hidden;
}
.chat__log {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1.25rem clamp(1rem, 2.5vw, 1.75rem);
  display: flex;
  flex-direction: column;
  gap: .375rem;
}
.chat__log > :first-child { margin-top: auto; }
.chat__log .msg { font-size: clamp(1.25rem, 1.12rem + .55vw, 1.625rem); padding: .6875rem 1.125rem; animation: pop 240ms var(--sc-ease-out) both; }
.chat__log .typing { animation: pop 200ms var(--sc-ease-out) both; }
.msg--time, .msg--note { align-self: center; background: none; padding: .25rem 0; color: var(--sc-ink-soft); text-align: center; max-width: 94%; }
.chat__log .msg--note, .chat__log .msg--time { font-size: 1.0625rem; line-height: 1.35; padding: .25rem 0; }
.msg--note a { color: inherit; }
.chat__log .msg--status { align-self: flex-end; background: none; padding: .125rem .25rem 0; font-size: 1rem; color: var(--sc-ink-soft); }
.mute {
  margin-left: auto;
  flex: none;
  width: 2.75rem; height: 2.75rem;
  display: grid; place-items: center;
  border: 0; background: transparent; border-radius: 50%;
  color: var(--sc-ink-soft);
  cursor: pointer;
  transition: background-color 140ms var(--sc-ease-out), color 140ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .mute:hover { background: rgba(14, 14, 20, .06); color: var(--sc-ink); } }
.mute:active { transform: scale(.94); }
.mute svg { width: 1.5rem; height: 1.5rem; }
.mute .off { display: none; }
.mute[aria-pressed="true"] .on { display: none; }
.mute[aria-pressed="true"] .off { display: block; }
.compose {
  flex: none;
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 0 clamp(.75rem, 2vw, 1.25rem) clamp(.75rem, 2vw, 1.25rem);
  background: #F7F7F5;
  border: 1px solid rgba(14, 14, 20, .16);
  border-radius: 2rem;
  padding: .3125rem .3125rem .3125rem 1.25rem;
  transition: border-color 140ms var(--sc-ease-out);
}
.compose:focus-within { border-color: var(--violet); box-shadow: 0 0 0 1px var(--violet); }
.compose input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  height: 3.25rem;
  font-size: clamp(1.25rem, 1.15rem + .4vw, 1.5rem);
  letter-spacing: -.012em;
  color: #0E0E14;
}
.compose input::placeholder { color: #5D5C66; opacity: 1; }
.compose input:focus-visible { outline: none; }
.send {
  flex: none;
  width: 3.25rem; height: 3.25rem;
  border-radius: 50%;
  border: 0;
  background: var(--violet);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: transform 120ms var(--sc-ease-out), background-color 140ms var(--sc-ease-out);
}
@media (hover: hover) and (pointer: fine) { .send:hover { background: var(--violet-deep); } }
.send:active { transform: scale(.94); }
.send svg { width: 1.5rem; height: 1.5rem; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.chat__nojs { display: none; margin: 1.25rem; }

/* ---------------------------------------------------------------- footer */
.foot { padding: 2rem 0 3rem; font-size: var(--t-small); color: var(--sc-ink-soft); }
.foot a { color: inherit; }

/* A long trip to the chat is a quick fade, so nobody watches the whole page fly past. */
.veil {
  position: fixed;
  inset: var(--bar) 0 0;
  z-index: 50;
  background: var(--sc-canvas);
  opacity: 0;
  pointer-events: none;
  transition: opacity 170ms ease-out;
}
.veil.on { opacity: 1; }

.vh {
  position: absolute !important;
  width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------ phone */
@media (max-width: 700px) {
  .hero { padding-top: calc(var(--bar) + 1.25rem); }
  .hero .lead { font-size: 1.3125rem; line-height: 1.32; }
  .btn { font-size: 1.3125rem; }
  .btn--small { font-size: 1rem; padding: .625em 1em; }
  .phone__log { padding: 1rem .75rem; }
  .sect { padding-block: 4.5rem; }
  .ex { margin-top: 4rem; }
  .msg--big { max-width: 92%; }
  .chat { border-radius: 1.5rem; }
}
@media (max-height: 700px) {
  .hero .lead { font-size: clamp(1.1875rem, 1.05rem + .5vw, 1.5rem); }
  .h1 { font-size: clamp(2.45rem, min(10.9vw, 12vh), 5.5rem); }
}
@media (prefers-reduced-motion: reduce) {
  .typing i { animation: none; opacity: .7; }
  .phone__log .msg.on, .phone__log .typing.on, .chat__log .msg, .chat__log .typing { animation: none; }
  /* Things still appear one at a time. They just fade in place instead of travelling. */
  .phone__log { transition: none; }
  .add, .todo li { transform: none; }
}
