/* Feature pages: convert-currency.html and the feature pages that follow it.
   Loaded after styles.css, on a body with class "home-page feature-page",
   so each page keeps the home page's type, spacing and white section bands. */

.feature-page {
  --feature-width: 1120px;
  --feature-tile-shadow: 0 22px 44px rgba(22, 28, 46, 0.05);
  --feature-sheet-shadow: drop-shadow(0 34px 46px rgba(70, 82, 180, 0.2)) drop-shadow(0 10px 18px rgba(109, 123, 255, 0.14));
  /* The big sheet: a soft glow that follows its shape on every side, and a
     wider one that pools below it. Both fade out smoothly and are spent before
     they reach the header, the next section or the edge of the screen, so
     nothing ever cuts them. (In drop-shadow the last length is the blur's
     standard deviation, about twice what the same number gives a box-shadow.) */
  --feature-hero-glow: drop-shadow(0 2px 12px rgba(109, 123, 255, 0.22)) drop-shadow(0 34px 34px rgba(98, 110, 240, 0.16));
}

.feature-page main {
  padding-top: clamp(20px, 3vw, 48px);
}

/* Explore more is its own part of the page: the white band stands above it, as above every other
   section. A black page has no bands, so there it keeps its closer spacing. */
.night-page main > .feature-more-section {
  margin-top: clamp(72px, 8vw, 112px);
}

.feature-page .feature-link {
  color: var(--mon-indigo-deep);
  font-weight: 600;
  white-space: nowrap;
}

.feature-page .feature-icon {
  font-family: "MonMaterialIcons";
  font-style: normal;
  font-weight: 400;
  line-height: 1;
  letter-spacing: normal;
  -webkit-font-smoothing: antialiased;
}

/* Hero: the feature's name and promise on the left, the app's own sheet on the right. */
.feature-hero {
  width: min(100%, var(--feature-width));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: center;
  gap: clamp(36px, 6vw, 96px);
}

.feature-hero__copy {
  min-width: 0;
}

.feature-page .feature-hero h1 {
  margin: 0;
  letter-spacing: 0;
}

.feature-eyeline {
  display: block;
  margin: 0 0 clamp(20px, 2.4vw, 34px);
  color: var(--ink);
  font-size: clamp(21px, 2.1vw, 29px);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.feature-headline {
  display: block;
  color: var(--ink);
  font-size: clamp(44px, 4.7vw, 66px);
  font-weight: 600;
  line-height: max(1.04, var(--title-leading, 0));
  letter-spacing: -0.06em;
}

.feature-headline > span {
  display: block;
}

/* The full stop is spaced by hand after each letter (data-after), so it sits the same
   clear distance from every one and never touches it. */
.feature-headline .hero-title-period {
  display: inline-block;
  margin-left: 0.02em;
}

.feature-headline .hero-title-period[data-after="s"] { margin-left: 0.03em; }
.feature-headline .hero-title-period[data-after="e"] { margin-left: 0.015em; }
.feature-headline .hero-title-period[data-after="t"] { margin-left: 0.055em; }
.feature-headline .hero-title-period[data-after="D"] { margin-left: -0.025em; }
.feature-headline .hero-title-period[data-after="k"] { margin-left: -0.035em; }
.feature-headline .hero-title-period[data-after="T"],
.feature-headline .hero-title-period[data-after="y"] { margin-left: -0.03em; }

/* A headline line stays whole: its full stop never drops to a line of its own. */
.feature-headline > span {
  white-space: nowrap;
}

.feature-page .feature-lede {
  max-width: 30ch;
  margin: clamp(20px, 2.2vw, 30px) 0 0;
  color: #59606f;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.42;
  letter-spacing: -0.025em;
}

.feature-hero .get-app-button {
  width: auto;
  min-width: 0;
  height: 42px;
  margin: clamp(26px, 3vw, 36px) 0 0;
  padding-inline: 18px;
  font-size: 15px;
  box-shadow: 0 6px 14px rgba(33, 33, 33, 0.12);
}

.feature-hero__visual {
  position: relative;
  justify-self: end;
  width: min(100%, clamp(300px, 25.5vw, 368px));
  margin: 0;
  display: grid;
  justify-items: center;
  gap: clamp(14px, 1.4vw, 18px);
  isolation: isolate;
}

/* The product visual arrives once. Copy uses the shared page scroll reveal. */
@media (prefers-reduced-motion: no-preference) {
  .feature-hero__visual {
    animation: feature-arrive 760ms var(--ease-premium) both;
  }

  .feature-hero__visual {
    animation-delay: 90ms;
  }
}

@keyframes feature-arrive {
  from {
    opacity: 0;
    transform: translate3d(0, 22px, 0);
  }
}

/* The Receive pages open the way a sheet opens in the app (.feature-hero--rise). The
   layout is the plain hero's. The name and the promise arrive line by line, and the sheet
   rises into its place beside them. */

/* Something happens on the sheet once it is up and in view: light crosses its button, or
   a scan line passes over its code. Each is placed over that part of the image (--x, --y,
   --w, --h), and waits for the page's scroll reveal to say it can be seen. */
.feature-sheet__light,
.feature-sheet__light.is-visible,
.feature-sheet__scan,
.feature-sheet__scan.is-visible {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--w);
  height: var(--h);
  opacity: 0;
  transform: none;
  transition: none;
  will-change: auto;
  pointer-events: none;
}

.feature-sheet__light {
  border-radius: var(--light-radius, 6.13% / 34.62%);
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.4) 50%, rgba(255, 255, 255, 0) 62%) 100% 0 / 260% 100% no-repeat;
}

.feature-sheet__scan,
.feature-land--code::after {
  border-radius: var(--land-radius, 7.2%);
  background: linear-gradient(to bottom, rgba(109, 123, 255, 0), rgba(109, 123, 255, 0.14) 62%, rgba(122, 95, 255, 0.4) 93%, rgba(255, 255, 255, 0.95) 97%, rgba(109, 123, 255, 0)) 0 -70% / 100% 40% no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  .feature-hero--rise .feature-hero__visual {
    animation: none;
  }

  /* A plan switch above the sheet comes in as one more line, just before the sheet. */
  .feature-hero--rise .feature-toggle {
    animation: feature-line 820ms 260ms var(--ease-premium) backwards;
  }

  .feature-hero--rise .feature-sheet {
    animation: feature-sheet-rise 1250ms 300ms backwards;
  }

  .feature-sheet__light.is-visible {
    animation: feature-land-sheen 1000ms 1300ms cubic-bezier(0.4, 0, 0.2, 1);
  }

  .feature-sheet__scan.is-visible {
    animation: feature-scan 1500ms 1300ms cubic-bezier(0.45, 0, 0.3, 1);
  }
}

@keyframes feature-line {
  from {
    opacity: 0;
    transform: translate3d(0, 18px, 0);
  }
}

@keyframes feature-sheet-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 190px, 0) scale(0.965);
    animation-timing-function: cubic-bezier(0.16, 1, 0.3, 1);
  }

  30% {
    opacity: 1;
  }

  70% {
    transform: translate3d(0, -5px, 0) scale(1);
    animation-timing-function: cubic-bezier(0.3, 0, 0.3, 1);
  }

  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes feature-scan {
  from {
    background-position: 0 -70%;
    opacity: 1;
  }

  to {
    background-position: 0 170%;
    opacity: 1;
  }
}

/* Section titles are the landing page's own ("Done in two taps."): the same size and leading
   at every width. The hero headline above them stays as it is. */
.feature-page main .section-heading h2 {
  font-size: clamp(32px, 3.8vw, 49px);
  line-height: max(1.02, var(--title-leading, 0));
}

/* Keep phrase wrapping, while headings and panel copy use the landing page's
   shared fade-and-rise once per block, without a second staggered animation. */
.feature-beats > span {
  display: inline-block;
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  /* A whole sheet in a panel rises into it, a little after the words. */
  .feature-panel--flow.is-visible > .feature-panel__image {
    animation: feature-sheet-rise 1200ms 420ms backwards;
  }
}

/* Standard / Infinity switch: the home page's plan toggle. */
.feature-toggle {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: clamp(164px, 13.5vw, 188px);
  height: clamp(30px, 2.4vw, 34px);
  border-radius: 999px;
  background: rgba(109, 123, 255, 0.08);
  isolation: isolate;
}

.feature-toggle__thumb {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  width: 50%;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(109, 123, 255, 0.18);
  transition: transform 260ms var(--ease-premium);
}

[data-plan="infinity"] .feature-toggle__thumb {
  transform: translateX(100%);
}

.feature-toggle__option {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: rgba(41, 54, 127, 0.62);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(12.5px, 1vw, 14px);
  font-weight: 700;
  letter-spacing: -0.03em;
  white-space: nowrap;
  cursor: pointer;
  transition: color 240ms var(--ease-premium);
}

.feature-toggle__option:hover,
.feature-toggle__option[aria-pressed="true"] {
  color: var(--mon-indigo-deep);
}

.feature-toggle__option:focus-visible {
  outline: 2px solid rgba(109, 123, 255, 0.34);
  outline-offset: 2px;
}

/* The sheet is an image of the app's own widget, cut to its rounded corners. */
.feature-sheet {
  position: relative;
  width: 100%;
  filter: var(--feature-hero-glow);
}

.feature-sheet img {
  display: block;
  width: 100%;
  height: auto;
}

/* Trim the exported ticket's faint corner fringe without clipping its glow. */
.feature-ticket {
  clip-path: inset(0 round 8.6% / 5.4%);
}

/* Standard stays underneath; Infinity fades in over it. */
.feature-sheet img[data-plan-image="infinity"] {
  position: absolute;
  inset: 0;
  height: 100%;
  opacity: 0;
  transition: opacity 320ms var(--ease-premium);
}

[data-plan="infinity"] .feature-sheet img[data-plan-image="infinity"] {
  opacity: 1;
}

.feature-page .feature-plan-note {
  min-height: 3em;
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
  text-align: center;
  text-wrap: balance;
}

.feature-plan-note [data-plan-note] {
  display: none;
}

[data-plan="standard"] [data-plan-note="standard"],
[data-plan="infinity"] [data-plan-note="infinity"] {
  display: block;
}

/* How it works: three pieces of the same sheet. */
.feature-page .feature-step-grid {
  width: min(100%, var(--feature-width));
  margin: clamp(44px, 5.2vw, 66px) auto 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 22px);
  counter-reset: feature-step;
}

.feature-step {
  scroll-margin-top: 96px;
  counter-increment: feature-step;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--feature-tile-shadow);
}

/* The stage is a piece of the app's sheet, painted the way the app paints every sheet:
   white glass (30 % to 10 %, corner to corner) over the sheet's own indigo shadow, which
   fades towards the edges, over the page with about half the app's dimming. The same
   recipe as the sheet images, so sheets and stages share one gradient and one colour. */
.feature-step__stage {
  position: relative;
  isolation: isolate;
  height: clamp(214px, 20vw, 252px);
  display: grid;
  place-items: center;
  padding: 22px clamp(16px, 1.7vw, 22px);
  border-top-left-radius: inherit;
  border-top-right-radius: inherit;
  background: #a9afd2;
}

.feature-step__stage::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

.feature-step__stage img {
  display: block;
  width: min(100%, 294px);
  height: auto;
}

/* A code is square: kept small enough to sit inside the stage. */
.feature-step__stage img[data-size="code"] {
  width: min(100%, 160px);
}

.feature-step__stage img[data-shadow] {
  filter: drop-shadow(0 6px 12px rgba(63, 81, 181, 0.3));
}

/* A piece lands on its piece of sheet. It comes down from in front of the sheet, out of
   focus and tilted, and settles flat while its shadow gathers under it. Then it does what
   it does in the app: Mon's own buttons catch the light and are pressed, a code is
   scanned, a round button asks to be tapped. Another company's button only lands. */
.feature-land {
  --land-at: 200ms;
  position: relative;
  isolation: isolate;
  display: block;
  width: min(100%, 294px);
}

.feature-land + .feature-land {
  --land-at: 340ms;
}

/* Side by side, the pieces take their buttons one after another. */
@media (min-width: 1101px) {
  .feature-step:nth-child(2) .feature-land {
    --land-at: 340ms;
  }

  .feature-step:nth-child(3) .feature-land {
    --land-at: 480ms;
  }

  .feature-step:nth-child(3) .feature-land + .feature-land {
    --land-at: 620ms;
  }
}

/* Two buttons on one piece of sheet, spaced as in the app. */
.feature-step__stage--pair {
  align-content: center;
  row-gap: 12px;
}

/* A code is square and small. */
.feature-land--code {
  --land-radius: 7.2%;
  width: min(100%, 160px);
}

/* The app's shadow under Mon's own buttons and codes. It stays on the sheet while the
   piece is in the air. Same shape, offset and blur as the drop shadow above. */
.feature-land--mon::before,
.feature-land--code::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: var(--land-radius, 6.2% / 34.62%);
  background: rgba(63, 81, 181, 0.3);
  filter: blur(12px);
  transform: translateY(6px);
}

/* The light that crosses the button once it has landed. A card takes it too, cut to the
   card's own corners (--land-radius) and tinted for a white card (--land-light). */
.feature-land--mon::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--land-radius, 6.2% / 34.62%);
  background: linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, var(--land-light, rgba(255, 255, 255, 0.4)) 50%, rgba(255, 255, 255, 0) 62%) 100% 0 / 260% 100% no-repeat;
  opacity: 0;
  pointer-events: none;
}

/* The scan line that passes over a code. Its look is set with the sheet's own, above. */
.feature-land--code::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

/* Two rows cut from one image, so the second can follow the first. */
.feature-land--split > img:first-child {
  clip-path: inset(0 0 50% 0);
}

.feature-land--split > img + img {
  position: absolute;
  inset: 0;
  height: 100%;
  clip-path: inset(50% 0 0 0);
}

/* Three pieces cut from one image (--cut-a, --cut-b): the top and the bottom land in turn,
   then the round button between them turns into place. */
.feature-land--trio > img:nth-child(1) {
  clip-path: inset(0 0 calc(100% - var(--cut-a)) 0);
}

.feature-land--trio > img:nth-child(2),
.feature-land--trio > img:nth-child(3) {
  position: absolute;
  inset: 0;
  height: 100%;
}

.feature-land--trio > img:nth-child(2) {
  clip-path: inset(var(--cut-b) 0 0 0);
}

.feature-land--trio > img:nth-child(3) {
  clip-path: inset(var(--cut-a) 0 calc(100% - var(--cut-b)) 0);
}

/* A ring that opens around a round button (--ring-x, --ring-y, --ring-d): tap here. */
.feature-land--ring::after {
  content: "";
  position: absolute;
  left: var(--ring-x);
  top: var(--ring-y);
  width: var(--ring-d);
  aspect-ratio: 1;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(109, 123, 255, 0.6);
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .feature-land > img,
  .feature-land--mon::before,
  .feature-land--code::before {
    opacity: 0;
  }

  /* Once landed, a piece is plain again: no transform or filter is left on it. */
  .feature-step.is-visible .feature-land > img,
  .feature-step.is-visible .feature-land--mon::before,
  .feature-step.is-visible .feature-land--code::before {
    opacity: 1;
  }

  .feature-step.is-visible .feature-land > img {
    animation: feature-land 1040ms var(--land-at) backwards;
  }

  .feature-step.is-visible .feature-land--mon::before,
  .feature-step.is-visible .feature-land--code::before {
    animation: feature-land-shadow 1040ms var(--land-at) backwards;
  }

  .feature-step.is-visible .feature-land--mon::after {
    animation: feature-land-sheen 900ms calc(var(--land-at) + 760ms) cubic-bezier(0.4, 0, 0.2, 1);
  }

  .feature-step.is-visible .feature-land--code::after {
    animation: feature-scan 1200ms calc(var(--land-at) + 900ms) cubic-bezier(0.45, 0, 0.3, 1);
  }

  /* A button is pressed once it is down, then the light crosses it. */
  .feature-step.is-visible .feature-land--press > img {
    animation:
      feature-land 1040ms var(--land-at) backwards,
      feature-press 460ms calc(var(--land-at) + 1120ms) cubic-bezier(0.3, 0, 0.3, 1);
  }

  .feature-step.is-visible .feature-land--press::before {
    animation:
      feature-land-shadow 1040ms var(--land-at) backwards,
      feature-press-shadow 460ms calc(var(--land-at) + 1120ms) cubic-bezier(0.3, 0, 0.3, 1);
  }

  .feature-step.is-visible .feature-land--press::after {
    animation-delay: calc(var(--land-at) + 1480ms);
  }

  .feature-step.is-visible .feature-land--split > img + img {
    animation-delay: calc(var(--land-at) + 160ms);
  }

  .feature-step.is-visible .feature-land--trio > img:nth-child(2) {
    animation-delay: calc(var(--land-at) + 160ms);
  }

  .feature-step.is-visible .feature-land--trio > img:nth-child(3) {
    animation: feature-swap 900ms calc(var(--land-at) + 560ms) backwards;
  }

  .feature-step.is-visible .feature-land--ring::after {
    animation: feature-ring 1100ms calc(var(--land-at) + 980ms) cubic-bezier(0.2, 0.7, 0.2, 1) 2;
  }

  /* Type has no body to land with: it comes up into focus, or an amount pops in. */
  .feature-step.is-visible .feature-land--type > img {
    animation-name: feature-type;
    animation-duration: 900ms;
    animation-timing-function: var(--ease-premium);
  }

  .feature-step.is-visible .feature-land--pop > img {
    animation-name: feature-pop;
    animation-duration: 820ms;
  }
}

@keyframes feature-land {
  0% {
    opacity: 0;
    transform: perspective(900px) translate3d(0, -34px, 96px) rotateX(-30deg);
    filter: blur(9px);
    animation-timing-function: cubic-bezier(0.2, 0.74, 0.2, 1);
  }

  20% {
    opacity: 1;
  }

  66% {
    transform: perspective(900px) translate3d(0, 1.5px, -9px) rotateX(0deg);
    filter: blur(0);
    animation-timing-function: cubic-bezier(0.3, 0, 0.3, 1);
  }

  100% {
    opacity: 1;
    transform: perspective(900px) translate3d(0, 0, 0) rotateX(0deg);
    filter: blur(0);
  }
}

@keyframes feature-land-shadow {
  0% {
    opacity: 0;
    transform: translateY(26px) scale(1.12, 1.6);
    filter: blur(24px);
    animation-timing-function: cubic-bezier(0.2, 0.74, 0.2, 1);
  }

  66% {
    opacity: 1;
    transform: translateY(5px) scale(1);
    filter: blur(10px);
    animation-timing-function: cubic-bezier(0.3, 0, 0.3, 1);
  }

  100% {
    opacity: 1;
    transform: translateY(6px) scale(1);
    filter: blur(12px);
  }
}

@keyframes feature-land-sheen {
  from {
    background-position: 100% 0;
    opacity: 1;
  }

  to {
    background-position: 0% 0;
    opacity: 1;
  }
}

@keyframes feature-press {
  42% {
    transform: scale(0.955);
  }
}

@keyframes feature-press-shadow {
  42% {
    opacity: 0.6;
    transform: translateY(3px) scale(0.955);
    filter: blur(8px);
  }
}

@keyframes feature-ring {
  from {
    opacity: 0.9;
    transform: translate(-50%, -50%) scale(1);
  }

  to {
    opacity: 0;
    transform: translate(-50%, -50%) scale(1.9);
  }
}

@keyframes feature-type {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0);
    filter: blur(6px);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes feature-pop {
  0% {
    opacity: 0;
    transform: scale(0.72);
    filter: blur(8px);
    animation-timing-function: cubic-bezier(0.2, 0.74, 0.2, 1);
  }

  62% {
    opacity: 1;
    transform: scale(1.045);
    filter: blur(0);
    animation-timing-function: cubic-bezier(0.3, 0, 0.3, 1);
  }

  100% {
    opacity: 1;
    transform: scale(1);
    filter: blur(0);
  }
}

/* The swap button: it pops in while it makes the half turn it makes when tapped. */
@keyframes feature-swap {
  0% {
    opacity: 0;
    transform: scale(0.72) rotate(-180deg);
    filter: blur(8px);
    animation-timing-function: cubic-bezier(0.2, 0.74, 0.2, 1);
  }

  62% {
    opacity: 1;
    transform: scale(1.045) rotate(0deg);
    filter: blur(0);
    animation-timing-function: cubic-bezier(0.3, 0, 0.3, 1);
  }

  100% {
    opacity: 1;
    transform: scale(1) rotate(0deg);
    filter: blur(0);
  }
}

.feature-step__body {
  padding: 24px clamp(22px, 2.2vw, 28px) 30px;
}

.feature-page .feature-step h3 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--ink);
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 600;
  line-height: max(1.15, var(--title-leading, 0));
  letter-spacing: -0.035em;
}

.feature-step h3::before {
  content: counter(feature-step);
  flex: none;
  width: 28px;
  height: 28px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(109, 123, 255, 0.1);
  color: var(--mon-indigo-deep);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

/* Ways rather than steps: no numbers. */
.feature-step-grid--plain .feature-step h3::before {
  content: none;
}

/* A way with its own page: the whole tile opens it. */
.feature-step--link {
  position: relative;
  /* The scroll reveal's own fade and rise, plus the shadow on hover. */
  transition:
    opacity 620ms cubic-bezier(0.22, 0.72, 0.2, 1),
    transform 760ms cubic-bezier(0.16, 1, 0.3, 1),
    box-shadow 420ms var(--ease-premium);
}

.feature-page .feature-step--link h3 a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-decoration: none;
}

.feature-step--link h3 a::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}

.feature-step--link h3 a::after {
  content: "";
  width: 8px;
  height: 8px;
  margin-top: 1px;
  border-top: 2px solid var(--mon-indigo-deep);
  border-right: 2px solid var(--mon-indigo-deep);
  transform: rotate(45deg);
  transition: transform 420ms var(--ease-premium);
}

.feature-step--link:hover {
  box-shadow: 0 28px 52px rgba(22, 28, 46, 0.09);
}

.feature-step--link:hover h3 a::after {
  transform: translateX(3px) rotate(45deg);
}

.feature-step--link h3 a:focus-visible {
  outline: none;
}

.feature-step--link h3 a:focus-visible::before {
  outline: 2px solid var(--mon-indigo-deep);
  outline-offset: -4px;
}

/* Names set in type where the app shows another company's own button. */
.feature-page .feature-step .feature-step__words {
  margin: 0;
  display: grid;
  gap: 8px;
  color: #2e2f38;
  font-size: clamp(20px, 1.9vw, 25px);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.03em;
  text-align: center;
}

/* The names come up into focus one after the other (.feature-step__words--flow). */
.feature-step__words--flow > span {
  --land-at: 200ms;
}

.feature-step__words--flow > span + span {
  --land-at: 340ms;
}

@media (min-width: 1101px) {
  .feature-step:nth-child(3) .feature-step__words--flow > span {
    --land-at: 480ms;
  }

  .feature-step:nth-child(3) .feature-step__words--flow > span + span {
    --land-at: 620ms;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .feature-step__words--flow > span {
    opacity: 0;
  }

  .feature-step.is-visible .feature-step__words--flow > span {
    opacity: 1;
    animation: feature-type 900ms var(--land-at) var(--ease-premium) backwards;
  }
}

.feature-page .feature-step p {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.52;
  letter-spacing: -0.01em;
}

.feature-page .feature-aside {
  max-width: 62ch;
  margin: clamp(26px, 3vw, 36px) auto 0;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
  letter-spacing: -0.01em;
  text-align: center;
  text-wrap: balance;
}

.feature-aside .feature-icon {
  display: inline-block;
  margin: 0 1px;
  color: var(--mon-indigo-deep);
  font-size: 19px;
  vertical-align: -4px;
}

/* Two panels: one white with the app's currency list, one in Mon indigo. */
.feature-duo {
  width: min(100%, var(--feature-width));
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(14px, 1.7vw, 22px);
}

/* Under the two panels, the way in: the same button as at the top of the page, centred. */
.feature-duo > .get-app-button {
  grid-column: 1 / -1;
  justify-self: center;
  width: auto;
  min-width: 0;
  height: 42px;
  margin: clamp(26px, 3vw, 36px) 0 0;
  padding-inline: 18px;
  font-size: 15px;
  box-shadow: 0 6px 14px rgba(33, 33, 33, 0.12);
}

.feature-panel {
  position: relative;
  min-height: clamp(470px, 43vw, 560px);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  isolation: isolate;
  border-radius: 32px;
  background: #fff;
  box-shadow: var(--feature-tile-shadow);
}

.feature-page .feature-panel h2 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 2.9vw, 38px);
  font-weight: 600;
  line-height: max(1.06, var(--title-leading, 0));
  letter-spacing: -0.045em;
}

.feature-page .feature-panel p {
  max-width: 31ch;
  margin: 14px 0 0;
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.015em;
}

.feature-page .feature-panel .feature-panel__fine {
  margin-top: 10px;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: 0;
}

/* Short facts in a panel: a label, its value, a hairline between rows. */
.feature-page .feature-facts {
  margin: auto 0 0;
  padding: 28px 0 0;
  list-style: none;
}

.feature-facts li {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 0;
  border-top: 1px solid var(--line-strong);
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.feature-facts li:last-child {
  border-bottom: 1px solid var(--line-strong);
}

.feature-page .feature-facts strong {
  color: var(--ink);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-align: right;
}

.feature-page .feature-panel .feature-facts + .feature-panel__fine {
  margin-top: 16px;
}

.feature-panel__image {
  width: min(74%, 286px);
  margin: clamp(26px, 3vw, 36px) auto calc(-1 * clamp(150px, 15vw, 200px));
  filter: var(--feature-sheet-shadow);
}

.feature-panel__image img {
  display: block;
  width: 100%;
  height: auto;
}

/* A whole sheet, shown without cropping. */
.feature-panel__image--whole {
  width: min(68%, 250px);
  margin: auto auto 0;
  padding-top: clamp(26px, 3vw, 36px);
}

/* A piece of an app screen on its own dark stage, as the app shows it. */
.feature-panel__screen {
  position: relative;
  margin: clamp(24px, 2.6vw, 32px) 0 0;
  overflow: hidden;
  border-radius: 24px;
  background: #48484c;
}

.feature-panel__screen img {
  display: block;
  width: 100%;
  height: auto;
}

/* A tap on one of the screen's buttons (--ring-x, --ring-y, --ring-d): a ring in the
   button's own shape opens around it once the panel has been read. */
.feature-panel__tap {
  position: absolute;
  left: var(--ring-x);
  top: var(--ring-y);
  width: var(--ring-d);
  aspect-ratio: 1;
  border-radius: 30%;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.72);
  opacity: 0;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

@media (prefers-reduced-motion: no-preference) {
  .feature-panel--flow.is-visible .feature-panel__tap {
    animation: feature-ring 1100ms 1500ms cubic-bezier(0.2, 0.7, 0.2, 1) 2;
  }
}

.feature-page .feature-panel .feature-panel__screen + .feature-panel__fine {
  margin-top: 18px;
}

.feature-panel--ai {
  background: linear-gradient(145deg, #605bf0 0%, #5447e0 46%, #2c1f72 100%);
  box-shadow: 0 28px 64px rgba(81, 73, 190, 0.2);
  color: #fff;
}

/* The plan card's diagonal sheen, kept faint so the white text stays easy to read. */
.feature-panel--ai::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 0.05));
  pointer-events: none;
}

.feature-page .feature-panel--ai h2 {
  color: #fff;
}

.feature-page .feature-panel--ai p {
  color: #fff;
}

.feature-page .feature-panel--ai .feature-say {
  max-width: 12ch;
  margin: auto 0;
  padding: 36px 0;
  color: #fff;
  font-size: clamp(36px, 4vw, 56px);
  font-weight: 600;
  line-height: 1.06;
  letter-spacing: -0.05em;
}

/* A name that must not break across lines, such as Mon-ID. */
.feature-keep {
  white-space: nowrap;
}

.feature-page .feature-panel--ai .feature-say + p {
  margin-top: 0;
}

.feature-page .feature-panel--ai .feature-panel__fine {
  color: rgba(255, 255, 255, 0.88);
}

.feature-page .feature-panel--ai .feature-link {
  color: #fff;
}

/* The currencies Mon holds and converts, shown the way the app shows them: round flags on
   a piece of the app's sheet. The number in the heading counts up to them (features.js).
   Each row of flags lands as it comes into view, one flag after another, and each catches
   the light as it settles. */
.feature-page .feature-currencies__lede {
  max-width: 30ch;
  margin: clamp(4px, 0.6vw, 8px) auto 0;
  color: #59606f;
  font-size: clamp(17px, 1.5vw, 21px);
  line-height: 1.42;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

/* Kept as wide as the finished number while it counts, so the line never moves: its digits
   share one width and never break onto two lines. */
.feature-count {
  display: inline-block;
  text-align: right;
  white-space: nowrap;
  overflow-wrap: normal;
  font-variant-numeric: tabular-nums;
}

.feature-page .feature-flags {
  --flag: 52px;
  position: relative;
  isolation: isolate;
  width: min(100%, 400px);
  margin: clamp(40px, 4.8vw, 60px) auto 0;
  padding: 32px 10px 28px;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  row-gap: 26px;
  /* The names under the flags are set by the sheet's own width, below. */
  container: flags / inline-size;
  border-radius: 32px;
  background: #a9afd2;
  box-shadow: 0 2px 22px rgba(109, 123, 255, 0.16), 0 30px 60px -18px rgba(98, 110, 240, 0.3);
}

/* The same white glass as every piece of sheet on these pages. */
.feature-flags::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(to bottom right, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.1));
  pointer-events: none;
}

.feature-flag {
  --land-at: calc(120ms + var(--c, 0) * 55ms + var(--row-at, 0ms));
  min-width: 0;
  display: grid;
  justify-items: center;
  align-content: start;
  text-align: center;
  /* Side by side, the flags of a row come up one after another. */
  transition-delay: calc(var(--c, 0) * 40ms);
}

.feature-flag:nth-child(4n + 2) { --c: 1; }
.feature-flag:nth-child(4n + 3) { --c: 2; }
.feature-flag:nth-child(4n + 4) { --c: 3; }

/* The app's currency badge: the flag cut round, the app's soft gloss over it, and the
   sheet's own shadow under it. The shadow stays on the sheet while the flag is in the air. */
.feature-flag__badge {
  position: relative;
  isolation: isolate;
  display: block;
  width: var(--flag);
  height: var(--flag);
  margin-bottom: 12px;
}

.feature-flag__badge::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: 50%;
  background: rgba(63, 81, 181, 0.3);
  filter: blur(12px);
  transform: translateY(6px);
}

.feature-flag__disc {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transition: transform 420ms var(--ease-premium);
}

.feature-flag__disc img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

/* The gloss, and over it the light that crosses the flag once it has landed. */
.feature-flag__disc::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    linear-gradient(105deg, rgba(255, 255, 255, 0) 38%, rgba(255, 255, 255, 0.6) 50%, rgba(255, 255, 255, 0) 62%) 100% 0 / 260% 100% no-repeat,
    radial-gradient(circle calc(var(--flag) * 1.05) at 27.5% 21%, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.01) 56%, rgba(0, 0, 0, 0.08));
  pointer-events: none;
}

.feature-page .feature-flag strong {
  color: #2e2f38;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
}

/* A currency's name is set the same way under every flag: its last word on a line of its
   own, or the whole name on one line once the sheet is wide enough for the longest. */
.feature-page .feature-flag small {
  display: block;
  margin-top: 3px;
  color: #40414d;
  font-size: 11.5px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  white-space: nowrap;
}

.feature-flag small span {
  display: block;
}

@container flags (min-width: 872px) {
  .feature-flag small span {
    display: inline;
  }
}

/* The narrowest phones: the names keep a little air between them. */
@media (max-width: 359px) {
  .feature-page .feature-flags {
    padding-left: 6px;
    padding-right: 6px;
  }

  .feature-page .feature-flag small {
    font-size: 11px;
    letter-spacing: -0.02em;
  }
}

@media (hover: hover) and (pointer: fine) {
  .feature-flag:hover .feature-flag__disc {
    transform: translateY(-3px) scale(1.05);
  }
}

@media (min-width: 700px) {
  .feature-page .feature-flags {
    --flag: clamp(48px, 5.2vw, 66px);
    width: min(100%, var(--feature-width));
    padding: clamp(34px, 3.8vw, 48px) clamp(10px, 1.4vw, 20px) clamp(30px, 3.3vw, 42px);
    grid-template-columns: repeat(8, minmax(0, 1fr));
    row-gap: clamp(28px, 3vw, 38px);
  }

  .feature-flag:nth-child(8n + 1) { --c: 0; }
  .feature-flag:nth-child(8n + 2) { --c: 1; }
  .feature-flag:nth-child(8n + 3) { --c: 2; }
  .feature-flag:nth-child(8n + 4) { --c: 3; }
  .feature-flag:nth-child(8n + 5) { --c: 4; }
  .feature-flag:nth-child(8n + 6) { --c: 5; }
  .feature-flag:nth-child(8n + 7) { --c: 6; }
  .feature-flag:nth-child(8n + 8) { --c: 7; }

  /* Both rows are often in view together: the second follows the first. */
  .feature-flag:nth-child(n + 9) {
    --row-at: 130ms;
  }

  .feature-flag__badge {
    margin-bottom: clamp(12px, 1.2vw, 15px);
  }

  .feature-page .feature-flag strong {
    font-size: clamp(15px, 1.3vw, 17px);
  }

  .feature-page .feature-flag small {
    font-size: 12.5px;
  }
}

/* A flag's row fades in where it stands; only the flag itself lands (below). A row sliding up
   while its flags drop read as shaking. */
.feature-flag[data-scroll-reveal],
.feature-flag[data-scroll-reveal].is-visible {
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .feature-flag__disc,
  .feature-flag__badge::before {
    opacity: 0;
  }

  /* Once landed, a flag is plain again: no filter is left on it. */
  .feature-flag.is-visible .feature-flag__disc,
  .feature-flag.is-visible .feature-flag__badge::before {
    opacity: 1;
  }

  .feature-flag.is-visible .feature-flag__disc {
    animation: feature-land 1040ms var(--land-at) backwards;
  }

  .feature-flag.is-visible .feature-flag__badge::before {
    animation: feature-land-shadow 1040ms var(--land-at) backwards;
  }

  .feature-flag.is-visible .feature-flag__disc::after {
    animation: feature-flag-glint 900ms calc(var(--land-at) + 760ms) cubic-bezier(0.4, 0, 0.2, 1);
  }
}

/* Phones: a shorter, softer landing, without the tilt and the heavy blur. */
@media (max-width: 640px) and (prefers-reduced-motion: no-preference) {
  .feature-flag.is-visible .feature-flag__disc {
    animation: feature-land-soft 720ms var(--land-at) backwards;
  }

  .feature-flag.is-visible .feature-flag__badge::before {
    animation-duration: 720ms;
  }
}

@keyframes feature-land-soft {
  0% {
    opacity: 0;
    transform: translate3d(0, -10px, 0) scale(0.94);
    filter: blur(3px);
    animation-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  }

  55% {
    opacity: 1;
    filter: blur(0);
  }

  100% {
    opacity: 1;
    transform: none;
    filter: blur(0);
  }
}

@keyframes feature-flag-glint {
  from {
    background-position: 100% 0, 0 0;
  }

  to {
    background-position: 0% 0, 0 0;
  }
}

/* Places rather than currencies (.feature-flags--places): more of them, one name each, and
   a last row that sits in the middle. The sheet's own width sets how many fit in a row. */
.feature-page .feature-flags--places {
  --flag: 46px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  row-gap: 22px;
}

.feature-flags--places .feature-flag {
  flex: 0 0 25%;
}

.feature-flags--places .feature-flag__badge {
  margin-bottom: 10px;
}

.feature-page .feature-flags--places .feature-flag small {
  margin-top: 0;
  color: #2e2f38;
  font-weight: 500;
}

@media (min-width: 700px) {
  .feature-page .feature-flags--places {
    --flag: clamp(48px, 4.6vw, 60px);
    row-gap: clamp(24px, 2.6vw, 32px);
  }

  .feature-flags--places .feature-flag__badge {
    margin-bottom: 12px;
  }

  .feature-page .feature-flags--places .feature-flag small {
    font-size: 12px;
  }
}

@container flags (min-width: 560px) {
  .feature-flags--places .feature-flag {
    flex-basis: calc(100% / 7);
  }
}

@container flags (min-width: 860px) {
  .feature-flags--places .feature-flag {
    flex-basis: calc(100% / 9);
  }
}

/* More from Mon: the same block on every feature page. */
.feature-more-grid {
  width: min(100%, var(--feature-width));
  margin: clamp(40px, 4.8vw, 60px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(12px, 1.4vw, 18px);
}

.feature-page .feature-more {
  min-width: 0;
  padding: 20px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 16px;
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--feature-tile-shadow);
  color: var(--ink);
  transition: transform 420ms var(--ease-premium), box-shadow 420ms var(--ease-premium);
}

/* The cards arrive one after another, a short soft rise, as rows arrive in the app's lists;
   the block itself doesn't slide in. */
.feature-more-grid[data-scroll-reveal] {
  opacity: 1;
  transform: none;
  transition: none;
}

.feature-more-grid.is-reveal-enabled:not(.is-visible):not(:focus-within) > .feature-more {
  opacity: 0;
}

.feature-more-grid.is-visible > .feature-more {
  animation: feature-more-in 620ms cubic-bezier(0.22, 1, 0.36, 1) backwards;
}

.feature-more-grid.is-visible > .feature-more:nth-child(2) {
  animation-delay: 80ms;
}

.feature-more-grid.is-visible > .feature-more:nth-child(3) {
  animation-delay: 160ms;
}

@keyframes feature-more-in {
  from {
    opacity: 0;
    transform: translate3d(0, 14px, 0) scale(0.985);
  }
}

.feature-page .feature-more:hover,
.feature-page .feature-more:focus-visible {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: 0 28px 52px rgba(22, 28, 46, 0.09);
}

.feature-more__icon {
  grid-row: 1 / span 2;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: linear-gradient(148deg, #7581ff 0%, #6470f6 56%, #735eff 100%);
  box-shadow: 0 10px 18px rgba(42, 48, 95, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.32);
  color: rgba(255, 255, 255, 0.96);
  font-size: 27px;
}

.feature-page .feature-more strong {
  align-self: end;
  color: var(--ink);
  font-size: 17px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.035em;
}

.feature-page .feature-more small {
  align-self: start;
  margin-top: 2px;
  color: var(--ink-soft);
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: -0.01em;
}

@media (max-width: 1100px) {
  .feature-hero {
    grid-template-columns: 1fr;
    justify-items: center;
    gap: clamp(40px, 6vw, 56px);
    text-align: center;
  }

  .feature-page .feature-lede {
    margin-left: auto;
    margin-right: auto;
  }

  .feature-hero__visual {
    justify-self: center;
    width: min(100%, 340px);
  }

  /* Stacked, the boxes stand apart, each with room to breathe, as apple.com's do on a phone. */
  .feature-page .feature-step-grid {
    width: min(100%, 400px);
    grid-template-columns: 1fr;
    gap: clamp(36px, 11vw, 48px);
  }

  .feature-step__stage {
    height: auto;
    padding: 34px 24px;
  }

  .feature-duo {
    width: min(100%, 520px);
    grid-template-columns: 1fr;
    gap: clamp(36px, 11vw, 48px);
  }

  /* Stacked, the space between the panels is already the space above the button. */
  .feature-duo > .get-app-button {
    margin-top: 0;
  }

  .feature-panel {
    min-height: 0;
  }

  .feature-page .feature-panel--ai .feature-say {
    margin: 0;
    padding: 34px 0;
  }

  .feature-more-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .feature-headline {
    font-size: clamp(38px, 11.4vw, 46px);
  }

  .feature-hero__visual {
    width: min(100%, 320px);
  }

  /* Close to the screen edges: a tighter glow that still fades out fully. */
  .feature-page {
    --feature-hero-glow: drop-shadow(0 2px 8px rgba(109, 123, 255, 0.22)) drop-shadow(0 22px 11px rgba(98, 110, 240, 0.16));
  }

  /* Explore more, as apple.com's cards on a phone: a row of tall cards to swipe through. The first
     starts at the page's edge with the second showing beside it; from then on a thin edge of the
     card before stays in view on the left, the card you are on sits at the page's edge, and part
     of the next shows on the right. The row is the browser's own scrolling, nothing scripted, so it
     follows the finger, glides and settles on a card exactly as a list does on the phone. */
  .feature-more-grid {
    --more-edge: var(--site-content-edge, 24px);
    /* A card floats a little above the page. The tiles' wide, faint shadow is lost in a narrow row
       with the next section just under it, so here it sits closer under the card and reads. */
    --feature-tile-shadow: 0 1px 3px rgba(22, 28, 46, 0.04), 0 16px 32px -10px rgba(22, 28, 46, 0.16);
    width: auto;
    /* The row reaches both edges of the screen. Its padding keeps the cards' soft shadows inside
       the scrolling area, so none is cut in a straight line; the row ends where the page's own
       bottom padding does. */
    margin: 28px calc(-1 * var(--more-edge)) -28px;
    padding: 12px var(--more-edge) 56px;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: clamp(184px, 49vw, 216px);
    gap: 14px;
    overflow: auto hidden;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: var(--more-edge);
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  /* On a phone the row holds still, as apple.com's does: the cards are simply there when you
     scroll to them. Nothing rises, fades or settles into place, and the heading only fades. */
  .feature-more-section .section-heading[data-scroll-reveal] {
    transform: none;
  }

  .feature-more-grid.is-reveal-enabled:not(.is-visible):not(:focus-within) > .feature-more {
    opacity: 1;
  }

  .feature-more-grid.is-visible > .feature-more {
    animation: none;
  }

  .feature-more-grid::-webkit-scrollbar {
    display: none;
  }

  /* A card holds its icon, name and line together in its middle, each centred, as the app's own
     tiles do: nothing is left empty between them. */
  .feature-page .feature-more {
    min-height: 208px;
    padding: 22px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 24px;
    text-align: center;
    scroll-snap-align: start;
  }

  /* In the row a card stays level under the finger. */
  .feature-page .feature-more:hover,
  .feature-page .feature-more:focus-visible {
    transform: none;
    box-shadow: var(--feature-tile-shadow);
  }

  .feature-more__icon {
    width: 56px;
    height: 56px;
    border-radius: 18px;
    font-size: 26px;
  }

  .feature-page .feature-more strong {
    align-self: center;
    max-width: 100%;
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.2;
    letter-spacing: -0.03em;
    text-wrap: balance;
    overflow-wrap: anywhere;
  }

  .feature-page .feature-more small {
    align-self: center;
    margin-top: 6px;
    font-size: 13.5px;
    line-height: 1.4;
    text-wrap: balance;
  }
}

@media (prefers-reduced-motion: reduce) {
  .feature-more-grid.is-visible > .feature-more {
    animation: none;
  }

  .feature-toggle__thumb,
  .feature-toggle__option,
  .feature-sheet img[data-plan-image="infinity"],
  .feature-page .feature-more,
  .feature-step--link,
  .feature-step--link h3 a::after,
  .feature-flag__disc {
    transition: none;
  }
}

/* Mon-AI page: a reel of requests. The list on the left, and one phone (styles.css, .ai-phone)
   that plays the request you pick, then the next one (monai.js). */
.ai-reel {
  width: min(100%, 980px);
  margin: clamp(40px, 4.8vw, 60px) auto 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(28px, 6vw, 88px);
}

.ai-reel__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.ai-ask {
  position: relative;
  width: 100%;
  padding: 18px 22px 20px;
  display: grid;
  gap: 5px;
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 420ms var(--ease-premium), box-shadow 420ms var(--ease-premium);
}

.ai-ask strong {
  font-size: clamp(19px, 2vw, 26px);
  font-weight: 600;
  line-height: 1.15;
  opacity: 0.42;
  transition: opacity 320ms var(--ease-premium);
}

.feature-page .ai-ask strong {
  letter-spacing: -0.04em;
}

.ai-ask small {
  color: #646b7a;
  font-size: 14.5px;
  line-height: 1.45;
}

.ai-ask:hover strong,
.ai-ask:focus-visible strong,
.ai-ask.is-active strong {
  opacity: 1;
}

.ai-ask.is-active {
  background: #fff;
  box-shadow: var(--feature-tile-shadow);
}

.ai-ask:focus-visible {
  outline: 2px solid rgba(109, 123, 255, 0.34);
  outline-offset: 3px;
}

/* How far the chosen request has played: not drawn (the clip itself shows it). */
.ai-ask::after {
  display: none;
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 0;
  height: 3px;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--mon-indigo), var(--mon-violet));
  opacity: 0;
  transform: scaleX(var(--played, 0));
  transform-origin: left;
}

.ai-ask.is-active::after {
  opacity: 1;
}

#languages .ai-ask::after {
  content: none;
}

.ai-phone__video {
  transition: opacity 160ms ease;
}

.ai-phone__video.is-changing {
  opacity: 0;
}

/* The reels' two screens, one over the other (monai.js): the next clip fades in over the last
   frame of the one before. */
.ai-reel.is-crossfading .ai-phone__video {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 380ms cubic-bezier(0.4, 0, 0.2, 1);
}

.ai-reel.is-crossfading .ai-phone__video.is-shown {
  opacity: 1;
}

.ai-reel.is-crossfading .ai-phone__video.is-front {
  z-index: 1;
}

@media (prefers-reduced-motion: reduce) {
  .ai-reel.is-crossfading .ai-phone__video {
    transition: none;
  }
}

@media (max-width: 860px) {
  .ai-reel {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }

  .ai-reel .ai-phone {
    order: -1;
  }

  .ai-reel__list {
    width: min(100%, 460px);
    gap: 6px;
  }

  .ai-ask {
    padding: 14px 18px 16px;
  }

  .ai-ask::after {
    left: 18px;
    right: 18px;
  }
}

/* Mon-AI page, languages: a line under the section title, the same reel the other way round
   (phone first), and requests written in their own script. */
.feature-page .feature-steps__lede {
  max-width: 560px;
  margin: 12px auto 0;
  color: #646b7a;
  font-size: clamp(15px, 1.45vw, 19px);
  line-height: 1.55;
  letter-spacing: -0.025em;
}

@media (min-width: 861px) {
  .ai-reel--flip {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .ai-reel--flip .ai-phone {
    order: -1;
  }
}

/* Tight tracking is for Latin letters: it breaks the joins of Arabic and Hindi. */
.feature-page .ai-ask strong [lang="ar"],
.feature-page .ai-ask strong [lang="hi"],
.feature-page .ai-ask strong [lang="zh-Hans"] {
  letter-spacing: normal;
}

/* Open account, step 1: the app's phone field above the Sign up button. The field is as wide
   as the other fields here; the button keeps the app's proportions to it: 85% of its width,
   30 points under it for every 345 points of field. */
.feature-step__stage--field {
  align-content: center;
}

.feature-step__stage--field .feature-land + .feature-land {
  width: min(85.4%, 251px);
  margin-top: min(8.7%, 26px);
}

/* Flags that open a page (SEPA transfer, International transfer, Convert currency): the whole flag
   is the link, set out exactly as the flag was. A press sinks the flag a little. */
.feature-flag__link {
  justify-self: stretch;
  display: grid;
  justify-items: center;
  align-content: start;
  border-radius: 18px;
  color: inherit;
  -webkit-tap-highlight-color: transparent;
}

.feature-flag__link:hover {
  text-decoration: none;
}

.feature-flag__link:focus-visible {
  outline: 2px solid var(--mon-indigo-deep);
  outline-offset: 4px;
}

.feature-flag__link:active .feature-flag__disc {
  transform: scale(0.94);
  transition-duration: 160ms;
}

/* A page set in black, as the app's dark dashboard: the Mon-AI page (body.night-page). Everything
   in main reads the dark inks; the header and the footer stay as on every page. Nothing glows or
   casts a shadow on the canvas: the cards are dark slabs with a rim of light, as the plan cards
   are, and the phones wear the landing page's metal frame (both in styles.css). */
/* The canvas is barely lit rather than fully off. On an OLED phone a pixel that is off lights up
   late, so dark cards scrolled over pure black trail violet at their leading edge. This still
   reads as black, and the plans under the page continue it, so no line shows where the page ends.
   The phones keep their pure black glass (--dark-canvas). */
.night-page {
  --night-canvas: #0a0a0c;
}

.night-page .site-footer .plans-section::before {
  background: var(--night-canvas);
}

.night-page main {
  --dark-canvas: #000000;
  --ink: #eef1f6;
  --ink-soft: #aeb6c6;
  --mon-indigo-deep: #b3baff;
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.14);
  --feature-tile-shadow: none;
  --feature-hero-glow: none;
  --feature-sheet-shadow: none;
  --night-surface: linear-gradient(145deg, #1c1d23 0%, #141519 46%, #0d0e11 100%);
  --night-rim: linear-gradient(135deg, rgba(255, 255, 255, 0.3) 0%, rgba(255, 255, 255, 0.1) 22%, rgba(255, 255, 255, 0.04) 50%, rgba(255, 255, 255, 0.03) 74%, rgba(255, 255, 255, 0.1) 100%);
  background: var(--night-canvas);
  color: var(--ink);
}

/* No white bands between the sections of a black page. */
.night-page main > section + section::before {
  content: none;
}

.night-page .feature-lede,
.night-page .feature-steps__lede,
.night-page .ai-ask small {
  color: var(--ink-soft);
}

/* The button turns over with the page: the light ink for its body, the canvas for its words. */
.night-page main .get-app-button {
  color: var(--dark-canvas);
  box-shadow: none;
}

.night-page main .feature-more-grid {
  --feature-tile-shadow: none;
}

/* Each phone under its own light: the first from the upper left, the next from the upper right
   (it stands on the left, lit from the side of the words), the last from above. */
.night-page #languages .ai-phone {
  --phone-light: 225deg;
}

.night-page #examples .ai-phone {
  --phone-light: 172deg;
}

/* The chosen request is a row of the app's dark theme: a faint fill and a hairline. */
.night-page .ai-ask.is-active {
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
}

/* Dark slabs: the control card and the Explore more tiles. The rim is the border, painted. */
.night-page .feature-panel:not(.feature-panel--ai),
.night-page .feature-more {
  border: 1px solid transparent;
  background: var(--night-surface) padding-box, var(--night-rim) border-box, #0d0e11 border-box;
  box-shadow: none;
}

.night-page .feature-more:hover,
.night-page .feature-more:focus-visible {
  --night-surface: linear-gradient(145deg, #24252c 0%, #1a1b20 46%, #111216 100%);
  box-shadow: none;
}

.night-page .feature-more__icon {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

/* The lacquer card keeps its colour: a rim of light where it had a glow. */
.night-page .feature-panel--ai {
  --night-lacquer: linear-gradient(145deg, #605bf0 0%, #5447e0 46%, #2c1f72 100%);
  border: 1px solid transparent;
  background:
    var(--night-lacquer) padding-box,
    linear-gradient(135deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.24) 20%, rgba(255, 255, 255, 0) 44%, rgba(255, 255, 255, 0) 72%, rgba(255, 255, 255, 0.18) 100%) border-box,
    var(--night-lacquer) border-box;
  box-shadow: none;
}
