/* The page of /new: Figma frame 4002:23218 ("desktop 1443") of the file frei-mkt. Figma has no
   phone layout. The phone layout at 760 px and less is our own. */
:root {
  /* The plain colour beside the open menu (css/shared.css): the blue of the sky at the top of
     the page, where the menu button is. */
  --menu-backdrop: #6d9fd5;
  /* The stack: the gap above a stopped card, the side margin, the band with the title, the
     inset of the photo card, and the radius. */
  --gutter: 12px;
  --side: 13.5px;
  --band: 44px;
  --inset: 12px;
  --card-radius: 40px;
  /* The radius of the coloured frame. 50 px, the value that Guilherme tested, keeps the gap
     between the frame curve and the photo curve constant. */
  --frame-radius: 50px;
  /* The incoming card: its start offset down and its start scale. It moves up and shrinks to its
     stop, so it seems to be placed on the pile. */
  --land-y: 40px;
  --land-scale: 1.05;
}
/* The page colour of Figma: a linear gradient at 38.31 degrees under a grey layer at 20 %, both
   mixed here. Blue at the top, light at the bottom. The stack is taller on the web than in Figma,
   so the page has two boxes of the Figma gradient: the top part to below the start of the stack,
   and the bottom part from the end of the stack. The stack carries the part between them. The
   stops are px from the bottom left corner of each box, for the 1470 px wide frame. */
body {
  background-color: #b4c6d9;
  background-image:
    linear-gradient(
      38.31deg,
      #d7dde1 -4360.1px,
      #d6dce3 -2688.2px,
      #becddd -682.7px,
      #9eb9d6 1028.5px,
      #6d9fd5 2125.6px
    ),
    linear-gradient(
      38.31deg,
      #d7dde1 -2032px,
      #d6dce3 -360.1px,
      #becddd 1645.5px,
      #9eb9d6 3356.7px,
      #6d9fd5 4453.8px
    );
  background-repeat: no-repeat;
  background-position:
    center top,
    center bottom;
  background-size:
    max(100%, 1470px) 2400px,
    max(100%, 1470px) 2609px;
}

/* Hero: the white card of frei-mkt "desktop 1440" (2075:24031, hero 2075:25148). The card is
   1440 x 960 at 15 px from the edges of the page, with a radius of 40 px. It holds the nav, the
   hero text, the form and, at its bottom, the grid of objects. The page blue shows around it. */
.opening {
  position: relative;
  padding: 15px 15px 0;
  overflow-x: clip;
}
.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 960px;
  padding-top: 156px;
  border-radius: 40px;
  background: white;
}
/* The grid starts 41 px below the button, as in Figma. Where a long German title takes three lines,
   the card grows and keeps the 41 px. */
.hero-content {
  position: relative;
  z-index: 3;
  padding-bottom: 41px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
h1 {
  margin-top: 24px;
  font-size: 64px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: -3.2px;
  color: #1b1d20;
}
/* The photo of the hero card of /new: it fills the card. The text lies on the plain wall of the
   photo, with no shadow behind it. */
.hero-photo {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  border-radius: inherit;
}
.hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The paragraph under the headline, and the two buttons under it: the waitlist form and the guide. */
.lede {
  max-width: 460px;
  margin-top: 20px;
  color: #5e636d;
  font-size: 22px;
  line-height: 1.45;
  text-wrap: pretty;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 12px;
  max-width: 100%;
  margin-top: 40px;
}
/* The two buttons of the hero are the button component of css/shared.css: "Join the beta" is
   .button--waitlist, the guide is .button--secondary (white on the photo of the card).
   The rules here change only their context. */

/* The grid of objects: frei-mkt 2075:25156, six by two tiles of 240 px edge to edge at the bottom
   of the card. The rules are 1 px #e3e6ea: one at the top of each row, one at the left of each tile
   but the first of a row, and one at the bottom of the card. Each tile has its label 14 px from its
   top left corner, and its object in the centre, 130 px from its top. The objects have the two sizes
   of Figma, 162 and 148 px, and get smaller only when the tile is narrow. The device of the hero
   lies over the centre of the grid. */
.tiles {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  grid-auto-rows: 240px;
  margin: auto 0 0;
  padding: 0;
  list-style: none;
  border-radius: 0 0 40px 40px;
  overflow: hidden;
  box-shadow: inset 0 -1px 0 #e3e6ea;
}
.tile {
  position: relative;
  box-shadow: inset 1px 1px 0 #e3e6ea;
}
.tile:nth-child(6n + 1) {
  box-shadow: inset 0 1px 0 #e3e6ea;
}
.tile span {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 10px;
  color: #9a9a9a;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
}
.object {
  position: absolute;
  top: 130px;
  left: 50%;
  width: min(162px, 67.5%);
  height: auto;
  translate: -50% -50%;
}
.object.small {
  width: min(148px, 61.7%);
}

/* The phone: the card of the desktop, stacked. 8 px from the edges, a radius of 28 px as the
   sentence card. The grid has three columns and four rows of 125 px, with the label 12 px from the
   corner. The card is 880 px high, so the German title of three lines has room above the grid. */
@media (max-width: 760px) {
  .hero {
    border-radius: 28px;
  }
  .tiles {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 125px;
    border-radius: 0 0 28px 28px;
  }
  .tile:nth-child(6n + 1) {
    box-shadow: inset 1px 1px 0 #e3e6ea;
  }
  .tile:nth-child(3n + 1) {
    box-shadow: inset 0 1px 0 #e3e6ea;
  }
  .tile span {
    top: 12px;
    left: 12px;
    right: 4px;
  }
  .object {
    top: 72px;
  }
}

/* The hero intro: on load, the pill, the headline, the button and the device fade in and rise
   into place, one after the other. Each part ends at its own place, so nothing moves in the
   layout. The scroll code sets the translate of .mac-wrap and .phone-wrap, so the device intro
   moves the window inside them. The phone wrap has a scale of 0.66 on a phone: 60 px there is
   about 40 px on the screen. js/main.js removes the intro from a part that is off the screen. */
@keyframes intro {
  from {
    opacity: 0;
    translate: 0 var(--intro-y);
  }
}
@keyframes intro-fade {
  from {
    opacity: 0;
  }
}
.hero-content h1,
.hero-content .lede,
.hero-content .waitlist,
.hero-content .guide,
.mac,
.phone {
  --intro-y: 16px;
  animation-name: intro;
  animation-duration: 900ms;
  animation-timing-function: var(--ease-out);
  animation-fill-mode: backwards;
}
.hero-content h1 {
  animation-delay: 120ms;
}
.hero-content .lede {
  animation-delay: 180ms;
}
.hero-content .waitlist,
.hero-content .guide {
  animation-delay: 240ms;
}
.mac,
.phone {
  --intro-y: 40px;
  animation-delay: 400ms;
}
.phone {
  --intro-y: 60px;
}
@media (prefers-reduced-motion: reduce) {
  .hero-content h1,
  .hero-content .lede,
  .hero-content .waitlist,
  .hero-content .guide,
  .mac,
  .phone {
    animation-name: intro-fade;
    animation-duration: 300ms;
  }
}
.hero-content .no-intro,
.no-intro {
  animation-name: none;
}

/* The sentence with objects. The device rises over it on scroll. The device lies 95 px lower since
   the hero card (round 34), so the sentence has 95 px more space at its top: the device and the
   text keep the same gap as before. */
.sentence {
  position: relative;
  z-index: 1;
  margin-top: 15px;
  min-height: 785px;
  padding: 235px max(24px, (100% - 1232px) / 2) 140px;
  border-radius: 40px;
  background: #eff0f3;
  display: grid;
  align-content: center;
  text-align: center;
  font-size: 54px;
  line-height: 82px;
  font-weight: 400;
  letter-spacing: -2.16px;
  color: #a6aeb6;
}
/* frei-mkt 4261:61: the sentence is Regular, and two of its parts are Medium. */
.sentence-medium {
  font-weight: 500;
}
.sentence-trip {
  white-space: nowrap;
}
.inline-icon {
  display: inline-block;
  vertical-align: top;
  margin-top: 8px;
  width: 66px;
  height: 66px;
  object-fit: contain;
}

/* The phone: Figma node 4002:23548. Its top is the top of the phone of frei-mkt "desktop 1440"
   (2075:25265), 104 px below the top of the grid, so the labels of the first row show. */
.phone-wrap {
  position: absolute;
  top: 599px;
  left: 50%;
  width: 437px;
  height: 880px;
  margin-left: -218.5px;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}
/* The photo hero has no Europe line, so the title has no gap above it. The card keeps its height
   of 960 px and the devices keep their place, so the bench of r28 shows above the Mac
   (frei-mkt 4284:244). On the photo the second button is white (.button--white). */
.hero-content h1:first-child {
  margin-top: 0;
}
.phone {
  width: 437px;
  height: 880px;
  border: 1.5px solid #fffffff2;
  border-radius: 84px;
  background: linear-gradient(90deg, #edf5ff4d, #ffffff24, #edf5ff4d);
  box-shadow: 0 4px 10px #0000001a, 0 36px 60px -6px #0d142638,
    inset 0 0 6px #8c9eb873;
  position: relative;
}
.phone-edge {
  position: absolute;
  inset: 1px;
  border: 1.5px solid white;
  border-radius: 82px;
}
.phone-band {
  position: absolute;
  inset: 12.5px;
  border: 1px solid #c7d4e5e6;
  border-radius: 70px;
  background: linear-gradient(116deg, #788ca8, #455770, #6e829e);
  box-shadow: 0 0 0 3px #9eadc28c;
}
.phone-bezel {
  position: absolute;
  inset: 19.5px;
  background: #050508;
  border-radius: 63px;
}
.side-button {
  position: absolute;
  background: linear-gradient(90deg, #4d5e78, #8c9eb8);
  width: 4px;
  border-radius: 2px;
}
.side-right {
  left: 422px;
  top: 261px;
  height: 96px;
}
.side-left {
  left: 9px;
  top: 249px;
  height: 62px;
  box-shadow: 0 78px #697f9c;
}
.side-button::before,
.side-button::after {
  content: "";
  position: absolute;
  width: 4px;
  border-radius: 2px;
  background: inherit;
}
.side-right::after {
  top: 299px;
  height: 52px;
}
.side-left::before {
  top: -60px;
  height: 34px;
}
.display {
  position: absolute;
  left: 28.5px;
  top: 28.5px;
  width: 377px;
  height: 820px;
  border-radius: 54px;
  overflow: hidden;
  background: black;
}
/* The side list of the app, with "Inbox" at work. It is a screen of 402 x 874 points, so the
   display shows its top left part. */
.side {
  position: absolute;
  left: -0.5px;
  top: 0;
  width: 402px;
  height: 874px;
  background: #0d1a4d;
  color: white;
}
.side-wordmark {
  position: absolute;
  left: 24px;
  top: 74px;
  width: 51px;
  height: 25.875px;
}
/* The small GLASS buttons of the app: a fill, a hairline, and a light rim from the top left. */
.side-search,
.side-round,
.new-chat,
.chat-round {
  position: absolute;
  border-radius: 22px;
  box-shadow:
    inset 0 0 0 0.5px var(--hairline, rgba(0, 0, 0, 0.05)),
    inset 1px 1px 0 rgba(255, 255, 255, 0.35),
    inset -1px -1px 0 rgba(255, 255, 255, 0.12);
}
.side-search {
  --hairline: rgba(255, 255, 255, 0.18);
  left: 258px;
  top: 65px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.2);
}
.side-search img {
  width: 20px;
  height: 20px;
}
.chat-list {
  position: absolute;
  left: 12px;
  top: 118px;
  width: 290px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.side-label {
  padding: 18px 0 4px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  color: rgba(255, 255, 255, 0.84);
}
.side-row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 44px;
  padding: 0 12px;
  font-size: 17px;
  line-height: 22px;
}
.side-row > span {
  flex: 1;
}
.side-row > .side-icon,
.side-row > .dot {
  flex: none;
}
.side-icon {
  position: relative;
  width: 36px;
  height: 36px;
}
.side-icon img {
  position: absolute;
  left: -4px;
  top: -3px;
  width: 44px;
  height: 44px;
  max-width: none;
}
.side-space {
  height: 17px;
  flex: none;
}
/* The dot "Working" of the app: 10 points in white at 85 %. In the app it pulses. Here it stays
   still, as in the Figma frame: a pulse that runs all the time cost a long frame at the first
   scroll. */
.dot {
  position: relative;
  width: 14px;
  height: 14px;
}
.dot::before {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
}
.side-past {
  position: absolute;
  left: 22px;
  top: 694px;
  width: 290px;
}
.side-bar {
  position: absolute;
  left: 22px;
  top: 746px;
  width: 290px;
  height: 44px;
}
.side-round {
  top: 0;
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
}
.side-round + .side-round {
  left: 52px;
}
.side-round img {
  position: absolute;
  max-width: none;
}
.side-round .settings {
  left: 8.97px;
  top: 8.97px;
  width: 26.06px;
  height: 26.06px;
}
.side-round .brain {
  left: 10.07px;
  top: 9.96px;
  width: 23.86px;
  height: 23.19px;
}
.new-chat {
  --hairline: rgba(255, 255, 255, 0.7);
  left: 185px;
  top: 0;
  height: 44px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 16px 0 13px;
  background: rgba(255, 255, 255, 0.94);
  color: #0b0b0f;
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
}
.new-chat img {
  width: 21px;
  height: 19px;
}
/* The chat with the morning briefing. It peeks at the right of the side list, at 96 % of the size
   of the display. js/main.js sets --chat from 0 to 1 on scroll: the chat then fills the display
   and covers the side list completely, as in round 4. (Figma 4038:2127 shows the chat at x 19.5,
   y 44 only to show it next to the side list. That is not the open state.) The values below are
   the Figma values divided by 0.9597. */
.chat {
  position: absolute;
  left: 0;
  top: 0;
  width: 377px;
  height: 820px;
  border-radius: 41.68px;
  overflow: hidden;
  background: white;
  box-shadow: -5.627px 0 28.134px rgba(0, 0, 0, 0.18);
  transform-origin: 0 0;
  transform: translate(
      calc(321.5px * (1 - var(--chat, 0))),
      calc(44px * (1 - var(--chat, 0)))
    )
    scale(calc(0.9597 + 0.0403 * var(--chat, 0)));
  will-change: transform;
  color: #121217;
}
.messages {
  position: absolute;
  left: 22.507px;
  top: 114.413px;
  width: 331.985px;
  display: flex;
  flex-direction: column;
  gap: 13.129px;
  font-size: 15.943px;
  line-height: 21.57px;
}
/* The messages appear one at a time when the chat is open. A line of frei and its snippet card
   are one message. */
.message {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.message.visible {
  opacity: 1;
  transform: none;
}
.user {
  align-self: flex-end;
  padding: 8.44px 13.129px;
  border-radius: 16.881px;
  background: #dbebff;
  line-height: 20.632px;
  white-space: nowrap;
}
.briefing {
  display: flex;
  flex-direction: column;
  gap: 13.129px;
}
/* A snippet card: one grey card style for all, with the object of frei at 40 px. */
.snippet {
  display: flex;
  align-items: center;
  gap: 10.42px;
  padding: 12.504px 14.588px 12.504px 10.42px;
  border: 1.042px solid rgba(0, 0, 0, 0.04);
  border-radius: 17.714px;
  background: #f1f1f3;
  overflow: hidden;
  font-size: 14.588px;
  line-height: 18.756px;
}
.snippet img {
  flex: none;
  width: 41.68px;
  height: 41.68px;
  object-fit: contain;
}
.snippet > span:not(.snippet-action) {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1.042px;
}
.snippet b {
  font-weight: 600;
}
.snippet b + span {
  color: #6d6d78;
}
.snippet-action {
  flex: none;
  font-weight: 500;
  line-height: normal;
  color: #0a62dc;
}
.chat-fade {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
}
.fade-top {
  top: 0;
  height: 65.548px;
  background: linear-gradient(
    rgba(255, 255, 255, 0.8),
    rgba(255, 255, 255, 0.8) 66%,
    rgba(255, 255, 255, 0)
  );
}
.fade-bottom {
  top: 693.98px;
  height: 125.667px;
  background: linear-gradient(
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.92) 16%,
    white
  );
}
.prompt {
  position: absolute;
  left: 11.254px;
  top: 740.871px;
  width: 354.493px;
  height: 46.891px;
  display: flex;
  align-items: center;
  gap: 9.378px;
  padding: 0 15.005px 0 13.129px;
  border: 0.938px solid transparent;
  border-radius: 23.445px;
  background:
    linear-gradient(rgba(117, 117, 128, 0.12), rgba(117, 117, 128, 0.12)) padding-box,
    linear-gradient(white, white) padding-box,
    linear-gradient(174.3deg, white, rgba(204, 204, 214, 0.5) 35.7%, white 71.4%) border-box;
  box-shadow: inset 0 0.938px 1.876px rgba(255, 255, 255, 0.9);
  color: rgba(10, 10, 15, 0.45);
  font-size: 15.943px;
  line-height: 19.694px;
}
.prompt img {
  width: 19.694px;
  height: 17.818px;
  object-fit: contain;
}
.prompt img:last-child {
  width: 17.818px;
  height: 21.57px;
}
.prompt span {
  flex: 1;
}
.chat-round {
  top: 58.144px;
  width: 41.264px;
  height: 41.264px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}
.chat-sidebar {
  left: 15.005px;
}
.chat-sidebar i {
  position: absolute;
  left: 12.194px;
  top: 16.506px;
  width: 16.881px;
  height: 2.063px;
  border-radius: 1.032px;
  background: black;
}
.chat-sidebar i + i {
  top: 22.695px;
  width: 11.254px;
}
.chat-new {
  left: 320.731px;
}
.chat-new img {
  position: absolute;
  left: 10.784px;
  top: 11.723px;
  width: 19.694px;
  height: 17.818px;
}
/* The status bar of the side list. Each part turns dark when the white chat lies under it. */
.status img {
  position: absolute;
  max-width: none;
  object-fit: contain;
  transition: filter 0.2s;
}
.display.chat-right .status img:not(.time),
.display.chat-open .status .time {
  filter: brightness(0);
}
.status .time {
  left: 41.55px;
  top: 19.53px;
  width: 31.365px;
  height: 12.46px;
}
.status .cell {
  left: 269.5px;
  top: 19px;
  width: 18.36px;
  height: 12.24px;
}
.status .wifi {
  left: 297.5px;
  top: 19px;
  width: 15.64px;
  height: 12.24px;
}
.status .battery {
  left: 324.5px;
  top: 21px;
  width: 19.72px;
  height: 9.52px;
}
.island {
  position: absolute;
  left: 126px;
  top: 11px;
  width: 125px;
  height: 37px;
  background: black;
  border-radius: 18.5px;
}

/* The hero device on a desktop: the Mac window of frei-mkt 4056:3945 ("Mac window, frei, Run app
   open"), 1120 x 740 at 1443 px. It takes the place of the phone: the same top, the same rise over
   the sentence. js/main.js sets --mac-scale so that the window keeps 48 px to each side of the
   screen; the media queries below give the same steps with no script. The scale is a paint-time
   transform inside the moving layer, so the text stays sharp. All values are the Figma values. */
.phone-wrap {
  display: none;
}
.mac-wrap {
  position: absolute;
  top: 599px;
  left: 50%;
  width: 1120px;
  height: 740px;
  margin-left: -560px;
  z-index: 2;
  pointer-events: none;
  will-change: transform;
}
@media (max-width: 1215px) {
  .mac-wrap {
    --mac-scale: 0.89;
  }
}
@media (max-width: 1099px) {
  .mac-wrap {
    --mac-scale: 0.807;
  }
}
@media (max-width: 999px) {
  .mac-wrap {
    --mac-scale: 0.717;
  }
}
@media (max-width: 899px) {
  .mac-wrap {
    --mac-scale: 0.594;
  }
}
/* The window of frei-mkt 4261:90: the content of 1120 x 740 px with a radius of 26 px, and outside
   it a frosted rim of 10 px (white 42 %) and a ring of 1 px (white 65 %). The rim lies outside the
   content box (content-box and a margin of -10 px), so the content keeps its size and place. The
   rim has no fill under it (background-clip), so the sky shows through. The outer radius is 36 px,
   so the inner corner stays 26 px. The scale keeps the top of the content in place. */
.mac {
  position: relative;
  box-sizing: content-box;
  width: 1120px;
  height: 740px;
  margin: -10px;
  border: 10px solid rgba(255, 255, 255, 0.42);
  border-radius: 36px;
  overflow: hidden;
  background: #0d1a4d;
  background-clip: padding-box;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.65),
    0 4px 14px rgba(0, 0, 0, 0.18),
    0 30px 80px rgba(13, 26, 64, 0.35);
  color: white;
  scale: var(--mac-scale, 1);
  transform-origin: 50% 10px;
}
.mac-side {
  position: absolute;
  left: 0;
  top: 0;
  width: 272px;
  height: 740px;
}
.mac-side > img,
.mac-glass,
.mac-past {
  position: absolute;
}
.mac-lights {
  left: 20px;
  top: 20px;
  width: 52px;
  height: 12px;
}
.mac-wordmark {
  left: 29px;
  top: 62px;
  width: 45px;
  height: 22.83px;
}
/* The small GLASS buttons, as on the phone: a fill, a hairline, and a light rim from the top left. */
.mac-glass {
  width: 36px;
  height: 36px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.2);
  box-shadow:
    inset 0 0 0 0.409px var(--hairline, rgba(0, 0, 0, 0.05)),
    inset 1px 1px 0 rgba(255, 255, 255, 0.35),
    inset -1px -1px 0 rgba(255, 255, 255, 0.12);
}
.mac-glass img,
.mac-glass i {
  position: absolute;
  max-width: none;
}
/* The right edge of the search button lines up with the right edge of "+ Chat" (249.16 px). The
   filter button keeps its gap of 7 px to the search button. */
.mac-toggle {
  left: 170.16px;
  top: 56px;
  background: rgba(255, 255, 255, 0.1);
}
.mac-toggle i {
  left: 10.64px;
  top: 14.4px;
  width: 14.727px;
  height: 1.8px;
  border-radius: 0.9px;
  background: white;
}
.mac-toggle i + i {
  top: 19.8px;
  width: 9.818px;
}
.mac-search {
  --hairline: rgba(255, 255, 255, 0.18);
  left: 213.16px;
  top: 56px;
}
.mac-search img {
  left: 9.818px;
  top: 9.818px;
  width: 16.364px;
  height: 16.364px;
}
.mac-list {
  position: absolute;
  left: 18px;
  top: 100px;
  width: 242px;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mac-label {
  padding: 14px 0 5px 11px;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 16px;
  color: rgba(255, 255, 255, 0.84);
}
.mac-row {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 39px;
  padding: 0 11px;
  border-radius: 12px;
  font-size: 15px;
  line-height: 20px;
}
.mac-row > span {
  flex: 1;
}
.mac-row > .mac-icon,
.mac-row > .dot {
  flex: none;
}
.mac-row.selected {
  background: rgba(255, 255, 255, 0.16);
}
.mac-icon {
  position: relative;
  width: 32px;
  height: 32px;
}
.mac-icon img {
  position: absolute;
  left: -3.556px;
  top: -2.667px;
  width: 39.111px;
  height: 39.111px;
  max-width: none;
}
.mac-past {
  left: 18px;
  top: 635px;
  width: 242px;
}
.mac-settings,
.mac-brain,
.mac-new {
  top: 682px;
}
.mac-settings {
  left: 20px;
}
.mac-settings img {
  left: 7.338px;
  top: 7.338px;
  width: 21.32px;
  height: 21.32px;
}
.mac-brain {
  left: 62.545px;
}
.mac-brain img {
  left: 8.239px;
  top: 8.151px;
  width: 19.521px;
  height: 18.97px;
}
.mac-new {
  --hairline: rgba(255, 255, 255, 0.7);
  left: 171.364px;
  width: auto;
  display: flex;
  align-items: center;
  gap: 4.909px;
  padding: 0 13.5px 0 11.045px;
  background: rgba(255, 255, 255, 0.94);
  color: #0b0b0f;
  font-size: 13.909px;
  font-weight: 500;
  line-height: 18px;
}
.mac-new img {
  position: static;
  width: 17.182px;
  height: 15.545px;
}
/* The white container: the chat at the left, the Run app at the right, 420 px each. */
.mac-pane {
  position: absolute;
  left: 272px;
  top: 8px;
  width: 840px;
  height: 724px;
  border-radius: 18px;
  overflow: hidden;
  background: white;
  color: #121217;
}
.mac-chat,
.mac-app {
  position: absolute;
  top: 0;
  width: 420px;
  height: 724px;
}
.mac-chat {
  left: 0;
}
.mac-messages {
  position: absolute;
  left: 26px;
  top: 84px;
  width: 368px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  font-size: 16px;
  line-height: 23px;
}
.mac-day {
  align-self: center;
  font-size: 12px;
  font-weight: 500;
  line-height: 15px;
  color: rgba(18, 18, 23, 0.45);
}
/* "Today" and the first line of the user show from the start. The six steps after them follow the
   scroll: js/main.js shows the first step at scroll 10 and one more step each 70 px. All steps
   keep their place when hidden, so the chat never moves. */
.mac-step {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out);
}
.mac-step.visible {
  opacity: 1;
  transform: none;
}
.mac-user {
  align-self: flex-end;
  padding: 9px 14px;
  border-radius: 18px;
  background: #dbebff;
  line-height: 21px;
  white-space: nowrap;
}
.mac-result {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px 12px 12px;
  border: 1px solid rgba(0, 0, 0, 0.04);
  border-radius: 18px;
  background: #f1f1f3;
  font-size: 14px;
  line-height: 18px;
  white-space: nowrap;
}
.mac-result img {
  flex: none;
  width: 40px;
  height: 40px;
  object-fit: contain;
}
.mac-result > span:not(.mac-open) {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.mac-result b {
  font-weight: 600;
}
.mac-result b + span {
  color: #6d6d78;
}
.mac-open {
  font-weight: 500;
  line-height: normal;
  color: #0a62dc;
}
.mac-fade {
  position: absolute;
  left: 0;
  top: 594px;
  width: 420px;
  height: 130px;
  background: linear-gradient(rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.92) 16%, white);
}
.mac-prompt {
  position: absolute;
  left: 26px;
  top: 650px;
  width: 368px;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 15.3px 0 13.5px;
  border: 0.9px solid white;
  border-radius: 25px;
  background: rgba(117, 117, 128, 0.12);
  box-shadow: inset 0 0.9px 1.8px rgba(255, 255, 255, 0.9);
  color: rgba(10, 10, 15, 0.45);
  font-size: 16px;
  line-height: 20px;
  white-space: nowrap;
}
.mac-prompt img {
  flex: none;
  width: 18.9px;
  height: 17.1px;
  object-fit: contain;
}
.mac-prompt .mac-prompt-app {
  width: 26px;
  height: 26px;
  border-radius: 6px;
}
.mac-prompt img:last-child {
  width: 17.1px;
  height: 20.7px;
}
.mac-prompt span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* The Run app at the right of the chat. css/devices.css draws its background and its cards. */
.mac-app {
  left: 420px;
  overflow: hidden;
}
.mac-title {
  position: absolute;
  left: 168px;
  top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 10px;
  border: 0.5px solid rgba(0, 0, 0, 0.06);
  border-radius: 22px;
  background: white;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}
.mac-title img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}
/* With no script, both chats show all their messages. */
@media (scripting: none) {
  .message,
  .mac-step {
    opacity: 1;
    transform: none;
  }
}

/* The two titles on the page gradient. Both have the same space to the card above and to the card
   below, so they cannot drift: 149 px above and 84 px below (104 px and 40 px on a phone). */
/* The German titles are longer. Where a German title wraps, its lines get the same length, so no
   word stands alone on the last line. A line of Figma is one block (`.title-line`) in German,
   because a balance does not work across a `<br />`. The English titles keep the line breaks of Figma. */
:lang(de) .hero-content h1,
:lang(de) .section-title,
:lang(de) .title-line {
  text-wrap: balance;
}
.title-line {
  display: block;
}
.section-title {
  max-width: calc(742.5px + 48px);
  margin: 149px auto 84px;
  padding: 0 24px;
  text-align: center;
  font-size: 64px;
  font-weight: 400;
  line-height: 1.04;
  letter-spacing: -3.2px;
  color: white;
}

/* "frei does a lot more than answering questions" and the stacking cards. Each card stops at
   `top: gutter + band * index`, and the next card slides over it. Only the band of a stopped card
   stays visible, and a stopped card never changes again. A stopped card fills the screen to one gutter above its bottom, so only one photo
   and one UI element are visible at a time. Each stopped card ends at the same line,
   `100svh - gutter`, so the whole stack leaves the screen together. In the flow, the cards keep a
   gap of one gutter. The stack carries the page gradient between its two boxes: the corners of
   the stack have the colours of Figma at the start and at the end of the stack. */
.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gutter);
  padding: 0 var(--side);
  /* The incoming card is up to 5 % wider than its stop width. */
  overflow-x: clip;
  background: linear-gradient(
    to top right,
    #d7dde1 -213.83%,
    #d6dce3 -119.12%,
    #becddd -5.51%,
    #9eb9d6 91.43%,
    #6d9fd5 153.58%
  );
}
.card {
  --i: 0;
  position: sticky;
  top: calc(var(--gutter) + var(--band) * var(--i));
  height: calc(100vh - 2 * var(--gutter) - var(--band) * var(--i));
  height: calc(100svh - 2 * var(--gutter) - var(--band) * var(--i));
  padding: var(--band) var(--inset) var(--inset);
  border-radius: var(--frame-radius);
  background: var(--frame);
  transform-origin: top center;
  color: white;
}
.card-groceries {
  --frame: #f57e3f;
}
.card-inbox {
  --i: 1;
  --frame: #264942;
}
.card-travel {
  --i: 2;
  --frame: #9b2116;
}
.card-run {
  --i: 3;
  --frame: #56a7b5;
}
.card-create {
  --i: 4;
  --frame: #bf3f77;
}
/* The title is in the centre of the band. */
.card-title {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--band);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  text-align: center;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
}
/* The photo card in the frame. The photo files have the crop of Figma. */
.card-inner {
  position: relative;
  height: 100%;
  border-radius: var(--card-radius);
  overflow: hidden;
  background: #333338;
}
.card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* The UI element sits in the centre of the photo card. js/main.js scales it down when the card
   is too low or too narrow for it. */
.ui-slot {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: grid;
  /* place-content centres the track too, so a UI element wider than the card stays centred. */
  place-content: center;
  place-items: center;
}
.ui {
  flex: none;
  color: #0b0b0f;
  font-size: 13px;
  line-height: normal;
}
.ui p {
  margin: 0;
}
.muted {
  white-space: pre;
  font-weight: 400;
  color: rgba(11, 11, 15, 0.45);
}
/* The Figma GLASS effect: a white fill at 60 %, a black inside stroke at 5 %, frost 12, and a
   light rim from the top left. Figma has no drop shadow on it. */
.glass {
  background: rgba(255, 255, 255, 0.6);
  box-shadow:
    inset 0 0 0 0.5px rgba(0, 0, 0, 0.05),
    inset 1px 1px 0 rgba(255, 255, 255, 0.55),
    inset -1px -1px 0 rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
}
.pill {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 16px;
  background: #0a7aff;
  color: white;
  font-size: 13px;
  font-weight: 500;
}
.pill-lime {
  background: #d4f252;
  color: #0b0b0f;
}

/* Groceries: the REWE card. Figma gives it no GLASS: a white fill at 74 %, a background blur of
   30 (a CSS blur of 15 px) and a drop shadow. */
.ui-rewe {
  width: 378px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-radius: 32px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  -webkit-backdrop-filter: blur(15px);
  backdrop-filter: blur(15px);
  color: #121217;
}
.rewe-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.rewe-head p {
  flex: 1;
  font-size: 21px;
  font-weight: 500;
  line-height: 25px;
}
.rewe-head img {
  width: 30px;
  height: 30px;
}
.rewe-logo {
  width: 46px;
  height: 16px;
}
.products {
  display: flex;
  gap: 8px;
}
.product {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  background-color: white;
  background-image: url("../assets/stack/products.webp");
  background-repeat: no-repeat;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06);
}
.p-coconut {
  background-size: 165.5px;
  background-position: -58.3px -56.7px;
}
.p-tomatoes {
  background-size: 167.8px;
  background-position: -115.3px -58.3px;
}
.p-oil {
  background-size: 127px;
  background-position: -39.4px -78.5px;
}
.p-chickpeas {
  background-size: 170.7px;
  background-position: -5.2px -6px;
}
.p-spinach {
  background-size: 146.7px;
  background-position: -49px -2.4px;
}
.product.more {
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, 0.05);
  box-shadow: none;
  color: rgba(11, 11, 15, 0.6);
  font-size: 14px;
  font-weight: 500;
}
.details {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(118, 118, 128, 0.12);
  font-size: 15px;
  line-height: 20px;
}
.details div {
  display: flex;
  justify-content: space-between;
}
.details dt {
  color: #6e6e78;
}
.details dd {
  color: #121217;
}
.details .total {
  font-weight: 600;
}
.slider {
  position: relative;
  height: 56px;
  border-radius: 28px;
  background: #0a7aff;
  color: white;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  display: grid;
  align-items: center;
}
.knob {
  position: absolute;
  left: 4px;
  top: 4px;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: white;
  display: grid;
  place-items: center;
}
/* The two labels and the two icons share one place. The Figma slider of the app (1983:6540) has
   the states swipe, paying and ordered: the ordered state keeps the blue and shows a check in the
   knob. The end state shows "Purchase successful" with the knob at the right end. */
.knob img,
.slider > span:not(.knob) {
  grid-area: 1 / 1;
}
/* Each label is centred in the free part of the pill, beside the knob. "Swipe to buy" has the box
   of the Figma label, 56 to 330 px, right of the knob at the start. "Purchase successful" is
   centred between the left end of the pill and the knob at the end, 0 to 286 px. */
.slider > span:not(.knob) {
  text-align: center;
}
.slider-swipe {
  margin: 0 8px 0 56px;
}
.slider-done {
  margin-right: 52px;
}
.knob-arrow,
.slider-swipe {
  opacity: 0;
}
.knob {
  translate: 282px 0;
}
.knob img {
  width: 22px;
  height: 22px;
}

/* Inbox: a glass panel of 384 x 288, with a white fill at 74 %. */
.ui-panel {
  width: 384px;
  height: 288px;
  padding: 20px 22px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.74);
}
/* The list stays under the title and the button stays at the bottom, so the new email pushes the
   list down and leaves the button in place. In the end state both gaps are 30 px, as before. */
.ui-panel .mail {
  margin-top: 30px;
}
.panel-top {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.panel-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 500;
}
.panel-head img {
  width: 20px;
  height: 15px;
}
.panel-title {
  font-size: 26px;
  letter-spacing: -0.52px;
}
/* The new email: its row grows from 0 to its full height, then its draft writes itself. */
.mail-in {
  display: grid;
  grid-template-rows: 1fr;
}
.mail-in > .mail-row {
  min-height: 0;
  overflow: hidden;
}
.mail {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.mail-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(11, 11, 15, 0.07);
}
.mail-row div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mail-row strong {
  font-weight: 500;
}
.mail-row span {
  color: rgba(11, 11, 15, 0.5);
}
.mail-row small {
  font-size: 12px;
  color: rgba(11, 11, 15, 0.4);
}
.ui-panel > .pill {
  align-self: flex-start;
  margin-top: auto;
}

/* Travel: the DB ticket. */
.ui-train {
  width: 396px;
  padding: 16px 18px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.train-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 500;
}
.train-head p {
  display: flex;
  align-items: center;
}
/* Figma sets the names of the train and the run in Medium, not Bold. */
.train-head strong,
.run-head strong {
  font-weight: 500;
}
/* The real DB logo. Its height is the cap height of the 12 px text next to it (8.7 px) plus
   about 2 px, with the aspect ratio of the logo. The gap to the text is 8 px, as in Figma. */
.db {
  width: 16px;
  height: 11.2px;
  margin-right: 8px;
}
.booked {
  gap: 4px;
  color: rgba(11, 11, 15, 0.55);
}
.booked img {
  width: 13px;
  height: 13px;
}
.times {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 30px;
  letter-spacing: -0.6px;
}
.line {
  display: flex;
  align-items: center;
  gap: 6px;
}
.line i {
  width: 70px;
  height: 1px;
  background: rgba(11, 11, 15, 0.2);
}
.line img {
  width: 14px;
  height: 14px;
}
.ui-train .row {
  display: flex;
  justify-content: space-between;
  color: rgba(11, 11, 15, 0.5);
}
.ui-train hr {
  width: 100%;
  height: 1px;
  margin: 0;
  border: 0;
  background: rgba(11, 11, 15, 0.08);
}

/* Run: the run that frei plans. It has the width of the DB ticket. */
.ui-run {
  width: 396px;
  padding: 16px 18px;
  border-radius: 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
}
.run-head {
  display: flex;
  align-items: center;
  font-size: 12px;
  font-weight: 500;
}
.run-icon {
  width: 14px;
  height: 14px;
  margin-right: 6px;
  color: #0b0b0f;
}
.chart {
  width: 100%;
  height: 44px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}
.chart i {
  width: 2px;
  border-radius: 1px;
  background: rgba(11, 11, 15, 0.18);
}
.chart .today {
  background: rgba(11, 11, 15, 0.85);
}
.b16 {
  height: 16px;
}
.b20 {
  height: 20px;
}
.b24 {
  height: 24px;
}
.b28 {
  height: 28px;
}
.b32 {
  height: 32px;
}
.b36 {
  height: 36px;
}
.b40 {
  height: 40px;
}
.metrics {
  width: 100%;
  display: flex;
  justify-content: space-between;
}
.metrics div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.metrics dt {
  font-size: 11px;
  line-height: 13px;
  color: rgba(11, 11, 15, 0.5);
}
.metrics dd {
  font-size: 15px;
  line-height: 18px;
  letter-spacing: -0.15px;
}

/* Create: frei-mkt "ui / create" (4011:27128). One glass card, 387 x 324, with the poster that
   frei made and below it the row of three more versions and the round buttons. */
.ui-versions {
  width: 387px;
  height: 324px;
  padding: 18px;
  border-radius: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.ui-versions .poster {
  width: 351px;
  height: 227.73px;
  border-radius: 12px;
  object-fit: cover;
}
.versions-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.thumbs,
.round-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.thumbs img {
  width: 45px;
  height: 30px;
  border-radius: 7px;
  object-fit: cover;
}
.round-buttons span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.06),
    inset 1px 1px 0 rgba(255, 255, 255, 0.55),
    inset -1px -1px 0 rgba(255, 255, 255, 0.2);
}
.round-buttons img {
  width: 15px;
  height: 15px;
}

/* "An AI assistant designed to be trusted": frei-mkt 4367:376. A light panel (#f2f2f2 at 40 %) over
   the sky, 15 px from the edges of the screen, with radius 40 and padding 15 15 40. In it the four
   white cards with 15 px between them, then "Read the manifesto". The gaps are measured on the
   screenshot of 4367:376: 72 px from the title to the panel, 45 px from the cards to the button and
   42 px from the button to the bottom of the panel. The section has the blue band of Figma, from
   #adc2da at the left to #97b5d7 at the right. `flow-root` keeps the margin of the title in the band.
   The band goes 140 px into the next section and fades out there, so it has no hard edge on the
   page gradient. #top paints the page gradient again, so the band needs its own stacking context
   (`isolation`) to be over it. `.server` has one too, so it paints over the end of the band. */
.trust {
  position: relative;
  isolation: isolate;
  display: flow-root;
  padding-bottom: 52px;
}
.trust::before {
  content: "";
  position: absolute;
  inset: 0 0 -140px;
  z-index: -1;
  background: linear-gradient(90deg, #adc2da, #97b5d7);
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent);
  mask-image: linear-gradient(to bottom, #000 calc(100% - 140px), transparent);
  pointer-events: none;
}
.trust .section-title {
  margin-bottom: 72px;
}
.trust-panel {
  margin: 0 15px;
  padding: 15px 15px 42px;
  border-radius: 40px;
  background: rgba(242, 242, 242, 0.4);
}
.trust-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}
/* A card is 333.75 x 494 px in Figma. It keeps that ratio at each width. The text starts 61 px from
   the top and 31 px from the left. The picture is a square of the card width at the bottom. */
.trust-card {
  position: relative;
  aspect-ratio: 333.75 / 494;
  padding-top: 61px;
  overflow: hidden;
  border-radius: 25px;
  background: white;
}
.trust-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 20px 0 31px;
}
.trust-text h3 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  line-height: 36px;
  letter-spacing: -1.2px;
  color: #2b2e35;
}
.trust-text p {
  font-size: 16px;
  line-height: 24px;
  color: #5e636d;
}
.trust-art {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: block;
  aspect-ratio: 1;
}
.trust-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* A white secondary button (.button--white) on the light panel. */
.trust-manifesto {
  width: fit-content;
  margin: 45px auto 0;
}

/* "Your server, or ours?": frei-mkt 4261:655. The title and a line under it, then two grey cards of
   697 px with 16 px between them. Each card has the picture (667 x 445 px, radius 25) at 15 px from
   its edges, then the title, a sentence, three rows and a button. On a phone the cards are stacked
   with the sizes of the phone frame 4261:817. */
.server {
  isolation: isolate;
  padding-bottom: 60px;
}
.server-head .section-title {
  margin-bottom: 22px;
}
.server-lede {
  max-width: 694px;
  margin: 0 auto 64px;
  padding: 0 24px;
  text-align: center;
  font-size: 24px;
  line-height: 32px;
  color: rgba(255, 255, 255, 0.7);
}
.server-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 697px));
  justify-content: center;
  gap: 16px;
  margin: 0 15px;
}
.server-card {
  overflow: hidden;
  padding: 15px 15px 48px;
  border-radius: 40px;
  background: #eff0f3;
}
.server-art {
  display: block;
  aspect-ratio: 667 / 445;
  overflow: hidden;
  border-radius: 25px;
}
.server-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.server-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 40px 33px 0;
}
.server-text h3 {
  margin: 0;
  font-size: 44px;
  font-weight: 400;
  line-height: 52px;
  letter-spacing: -1.76px;
  color: #2b2e35;
}
.server-text h3 .medium {
  font-weight: 500;
}
.server-text > p {
  font-size: 20px;
  line-height: 29px;
  color: #5e636d;
}
.server-rows {
  align-self: stretch;
  margin: 0;
  padding: 20px 0 0;
  list-style: none;
}
.server-rows li {
  padding: 16px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 17px;
  line-height: 22px;
  color: #2b2e35;
}
.server-action {
  padding-top: 24px;
}
/* The two buttons of the card are the button component of css/shared.css: .button--waitlist and
   a white .button--secondary on the grey card. */
.server-guide {
  width: fit-content;
}
@media (max-width: 1100px) {
  .server-cards {
    grid-template-columns: minmax(0, 697px);
  }
}
@media (max-width: 760px) {
  .server-head .section-title {
    margin-top: 80px;
    margin-bottom: 16px;
  }
  .server-lede {
    max-width: 390px;
    margin-bottom: 32px;
    font-size: 17px;
    line-height: 24px;
  }
  .server-cards {
    gap: 8px;
    margin: 0 8px;
  }
  .server-card {
    padding: 8px 8px 32px;
    border-radius: 32px;
  }
  /* The picture keeps the ratio of the desktop, so the phone shows each baked layer, the EU flag too. */
  .server-art {
    border-radius: 24px;
  }
  .server-text {
    padding: 28px 16px 0;
  }
  .server-text h3 {
    font-size: 34px;
    line-height: 40px;
    letter-spacing: -1.36px;
  }
  .server-text > p {
    font-size: 17px;
    line-height: 24px;
  }
  .server-rows li {
    font-size: 16px;
  }
  .server-beta,
  .server-guide {
    font-size: 16px;
  }
}

/* The sticker easter egg of Figma (frei-mkt "Frame 15"). The page ends with the top of the
   stickers: 77 px at 1470 px, as Figma shows them at rest. The whole sticker layer (428 px at
   1470 px) lies under the page, fixed so that its top is exactly behind that strip when the page is
   at its end. More scroll input at the end pulls the page and the layer up together with a rubber
   band, so more of the stickers comes out under the strip, and both spring back on release
   (js/elastic.js). The pull stops at 150 px on a desktop and 100 px on a phone, so the rest of the
   layer stays under the page. The layer grows with a wider screen, and a narrower screen shows its centre.
   js/main.js hides the layer while the footer is off the screen, so the covered layer costs
   nothing. */
:root {
  --sticker-h: max(428px, 29.116vw);
  --sticker-strip: max(77px, 5.238vw);
}
/* Near the end, the native overscroll bounce of the browser would fight the pull. The class is
   on only while the footer is on the screen, so the bounce at the top of the page stays. */
:root.at-end {
  overscroll-behavior-y: none;
}
#top {
  background: inherit;
}
.sticker-strip {
  height: var(--sticker-strip);
  overflow: hidden;
}
.stickers {
  position: fixed;
  z-index: -1;
  left: 0;
  right: 0;
  bottom: calc(var(--sticker-strip) - var(--sticker-h));
  height: var(--sticker-h);
  overflow: hidden;
}
.stickers.covered {
  visibility: hidden;
}
.sticker-strip img,
.stickers img {
  display: block;
  width: 100%;
  height: var(--sticker-h);
  object-fit: cover;
  object-position: center top;
}


/* Medium widths: the trust cards in two rows of two. */
@media (max-width: 1100px) {
  .trust-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* The animations of the card UIs. Each one plays once when its card is the top card and its UI is
   fully visible, and runs in time to its end. Without the class "anim" (no script, or reduced
   motion) each UI shows its end state. ".anim .ui:not(.play)" is the start state; the transitions
   exist only under ".play", so a reset to the start state is instant. */
.anim .ui-rewe:not(.play) .knob {
  translate: 0 0;
}
.anim .ui-rewe:not(.play) .knob-arrow,
.anim .ui-rewe:not(.play) .slider-swipe {
  opacity: 1;
}
.anim .ui-rewe:not(.play) .knob-check,
.anim .ui-rewe:not(.play) .slider-done {
  opacity: 0;
}
.anim .ui-rewe.play .knob {
  transition: translate 0.6s var(--ease-in-out) 0.2s;
}
.anim .ui-rewe.play .slider-swipe {
  transition: opacity 0.3s var(--ease-out) 0.2s;
}
.anim .ui-rewe.play .knob-arrow {
  transition: opacity 0.2s var(--ease-out) 0.7s;
}
.anim .ui-rewe.play .knob-check,
.anim .ui-rewe.play .slider-done {
  transition: opacity 0.3s var(--ease-out) 0.8s;
}
.anim .ui-panel:not(.play) .mail-in {
  grid-template-rows: 0fr;
  margin-bottom: -10px;
}
.anim .ui-panel:not(.play) .mail-in > .mail-row,
.anim .ui-panel:not(.play) .w {
  opacity: 0;
}
.anim .ui-panel.play .mail-in {
  transition: grid-template-rows 0.5s var(--ease-out) 0.15s, margin-bottom 0.5s var(--ease-out) 0.15s;
}
.anim .ui-panel.play .mail-in > .mail-row {
  transition: opacity 0.4s var(--ease-out) 0.35s;
}
.anim .ui-panel.play .w {
  transition: opacity 0.16s var(--ease-out) calc(0.75s + var(--w, 0) * 75ms);
}
.anim .ui-train:not(.play) .line i {
  scale: 0 1;
}
.anim .ui-train:not(.play) .line img {
  opacity: 0;
  translate: -6px 0;
}
.line i {
  transform-origin: left center;
}
.anim .ui-train.play .line i {
  transition: scale 0.8s var(--ease-out) 0.1s;
}
.anim .ui-train.play .line img {
  transition: opacity 0.25s var(--ease-out) 0.75s, translate 0.25s var(--ease-out) 0.75s;
}
.chart i {
  transform-origin: bottom center;
}
.anim .ui-run:not(.play) .chart i {
  scale: 1 0.12;
}
.anim .ui-run.play .chart i {
  transition: scale 0.5s var(--ease-out) calc(0.1s + var(--n, 0) * 80ms);
}
.anim .ui-versions:not(.play) .thumbs img {
  opacity: 0;
  scale: 0.9;
}
.anim .ui-versions.play .thumbs img {
  transition: opacity 0.45s var(--ease-out) calc(var(--n, 0) * 350ms + 200ms),
    scale 0.45s var(--ease-out) calc(var(--n, 0) * 350ms + 200ms);
}

/* The incoming card lands on the pile: while it slides in, it starts 5 % larger and 40 px lower
   (24 px on a phone), and it moves up and shrinks to scale 1 exactly at its stop. So it rises a
   little faster than the scroll and settles. Each card, the first one too, lands from the moment
   its top enters the screen ("entry 0%") to its stop ("contain" plus one gutter: a stopped card
   ends one gutter above the bottom of the screen). Empty sky under the title keeps the first card
   below the screen while the title is in the middle, so it comes up from the bottom edge like the
   others. A stopped card keeps scale 1 and never changes again, so all five cards end with the
   same width.
   The values follow the scroll 1:1, with a CSS scroll-driven animation on the view timeline of
   the card itself. js/main.js gives the animation only to the card that lands now ("landing").
   A card before its range gets the static start state ("waiting"), a stopped card none. With an
   animation on every card, Chrome drew the glass blur of every stopped card in each frame. In a
   browser with no scroll-driven animations, js/main.js sets the same values from the scroll. */
@keyframes land {
  from {
    translate: 0 var(--land-y);
    scale: var(--land-scale);
  }
  to {
    translate: none;
    scale: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .card.waiting {
    translate: 0 var(--land-y);
    scale: var(--land-scale);
  }
  @supports (animation-timeline: view()) {
    /* Longhands only: the shorthand "animation" resets the timeline to the clock. */
    .card.landing {
      animation-name: land;
      animation-duration: auto;
      animation-timing-function: linear;
      animation-fill-mode: both;
      animation-timeline: view();
      animation-range: entry 0% contain var(--gutter);
    }
  }
}

/* The phone layout. Figma has none: this layout is our own. The page gradient is one box of the
   whole page here, at the angle of Figma. */
@media (max-width: 760px) {
  :root {
    --gutter: 8px;
    --side: 8px;
    --band: 36px;
    --inset: 8px;
    --card-radius: 24px;
    /* The photo radius plus the inset. */
    --frame-radius: 32px;
    --land-y: 24px;
    /* The sticker layer at 73 % on a phone. */
    --sticker-h: 312.4px;
    --sticker-strip: 56.2px;
  }
  body {
    background-image: linear-gradient(
      38.31deg,
      #d7dde1 -39.67%,
      #d6dce3 -7.03%,
      #becddd 32.12%,
      #9eb9d6 65.53%,
      #6d9fd5 86.94%
    );
    background-position: center top;
    background-size: 100% 100%;
  }
  .opening {
    padding: 8px 8px 0;
  }
  .hero {
    min-height: 880px;
    padding-top: 118px;
  }
  .hero-content {
    padding: 0 16px 32px;
  }
  h1 {
    margin-top: 18px;
    font-size: 38px;
    letter-spacing: -1.9px;
  }
  /* The phone lies 16 px under the buttons (8 + 118 + 269 + 16 = 411, with no Europe line). The
     card ends 196 px below the top of the phone, so the phone keeps its 204 px over the sentence card:
     the card is 599 px high. The method of Guilherme's phone crop, frei-mkt 4233:21173: the photo is
     167 % of the card width, and its bottom is the bottom of the card. The point at 58 % of the
     photo width is the centre of the card, so the card shows 28 % to 88 % of the photo, the phone
     crop of r28. The computer with the mascot (63 %) stands between the buttons and the phone.
     Above the photo the card has the wall colour of the top edge of the photo (#ece5d9), and the
     photo fades in over 40 px, with no seam. */
  .hero:has(> .hero-photo) {
    min-height: 599px;
  }
  .opening:has(.hero-photo) .phone-wrap {
    top: 411px;
  }
  .hero-photo {
    background: #ece5d9;
  }
  .hero-photo img {
    position: absolute;
    bottom: 0;
    left: calc(50% - 0.58 * 167%);
    width: 167%;
    max-width: none;
    height: auto;
    mask-image: linear-gradient(to bottom, transparent, #000 40px);
  }
  .lede {
    max-width: 300px;
    margin-top: 14px;
    font-size: 19px;
  }
  /* On a phone the two buttons stack, with the same width: 220 px, or the width of the longer label. */
  .hero-actions {
    flex-direction: column;
    align-items: stretch;
    width: max-content;
    min-width: 220px;
    white-space: nowrap;
    margin-top: 28px;
  }
  .waitlist {
    align-items: stretch;
  }
  .waitlist:not(.is-open) .cta {
    flex: 1;
    justify-content: space-between;
  }
  .guide {
    justify-content: center;
  }
  .waitlist.is-open .waitlist-pill input {
    width: 210px;
    padding-left: 18px;
  }
  /* The phone has the place that it had over the grid: its top is 770 px from the top of the page,
     204 px above the top of the sentence card. The sentence gives it 37 px of room. */
  .phone-wrap {
    display: block;
    top: 770px;
    transform-origin: top center;
    scale: 0.66;
  }
  .sentence {
    margin-top: 8px;
    min-height: 0;
    padding: 414px 20px 60px;
    border-radius: 28px;
    font-size: 34px;
    line-height: 46px;
    letter-spacing: -1.3px;
    word-spacing: -1px;
  }
  .inline-icon {
    width: 38px;
    height: 38px;
    margin-top: 4px;
  }
  .section-title {
    margin-top: 104px;
    margin-bottom: 40px;
    font-size: 38px;
    letter-spacing: -1.9px;
  }
  .stack {
    background: none;
  }
  .card-title {
    padding: 0 12px;
    font-size: 14px;
    line-height: 18px;
    letter-spacing: -0.1px;
  }
  /* On a phone the photo card is tall, so it shows only a third of the width of each photo. Each
     crop shows the person. The UI element covers almost the full width, so a crop to the side
     cannot avoid it. Where the person sits behind the UI element, the photo is taller than the
     card and keeps its bottom edge: that lifts the head of the person above the UI element. */
  .card-groceries .card-photo {
    height: 120%;
    object-position: 17% 50%;
  }
  .card-groceries .card-photo,
  .card-inbox .card-photo,
  .card-travel .card-photo,
  .card-run .card-photo,
  .card-create .card-photo {
    top: auto;
  }
  .card-inbox .card-photo {
    height: 115%;
    object-position: 72% 50%;
  }
  .card-travel .card-photo {
    height: 130%;
    object-position: 81% 50%;
  }
  .card-run .card-photo {
    height: 120%;
    object-position: 92% 50%;
  }
  .card-create .card-photo {
    height: 135%;
    object-position: 5% 50%;
  }
  /* The trust panel of the desktop, stacked: 8 px from the edges of the screen, with the padding
     and the gaps of the desktop. The title keeps the 40 px of the phone titles. */
  .trust .section-title {
    margin-bottom: 40px;
  }
  .trust-panel {
    margin: 0 8px;
  }
  .trust-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  .mac-wrap {
    display: none;
  }
}
@media (max-width: 400px) {
  .sentence {
    font-size: 30px;
    line-height: 40px;
  }
  .inline-icon {
    width: 34px;
    height: 34px;
    margin-top: 3px;
  }
  h1 {
    font-size: 35px;
  }
}
/* On a phone, the script marks each word "read" as it passes the reading line. */
@media (max-width: 760px) {
  .sentence .read {
    color: #6b7178;
  }
}
@media (max-width: 760px) and (prefers-reduced-motion: reduce) {
  .sentence {
    color: #6b7178;
  }
}
@media (prefers-reduced-motion: reduce) {
  .phone-wrap,
  .chat {
    will-change: auto;
  }
  /* The chat steps keep their fade, with no rise. */
  .message,
  .mac-step {
    transform: none;
    transition: opacity 0.7s var(--ease-out);
  }
  .status img {
    transition: none;
  }
}
