/* Made by i18n/build.py from neko.css (write_rtl_styles). Do not edit. */
/* The hero of the home page. Fonts, colours, the logo and the footer are in
   base.css, which every page loads first. */

/* A mint progress line on the video of the neutral page. */
html[data-accent^="mint"]:not([data-theme="mint"]) .progress i { background: var(--mint); }

body {
  /* The height of the stage. On the body because the pinned part and the box
     after it are both measured in it. */
  --stage: max(100vh, 520px);
  --stage: max(100svh, 520px);
}

/* ------------------------------------------------------------------ hero */

.page {
  position: relative;
  /* Everything in the scene is sized from the phone height. It leaves a fifth
     of the screen above the phone: the cat sits up there. */
  --ph: min(58vh, 640px);
  --ph: min(58svh, 640px);
  --pw: calc(var(--ph) * 0.4615);
  --pad: clamp(20px, 3.2vw, 56px);
  --gap: clamp(18px, 2.6vw, 44px);
  --side: calc(50vw - var(--pw) / 2 - var(--pad) - var(--gap));
  --fs: min(var(--side) / 4.66, var(--ph) * 0.215);
}
/* The stage is pinned for five and a half screens: the hero at the top, then
   one screen of scrolling per step. */
.track { position: relative; height: calc(var(--stage) * 6.5); }

.hero {
  position: -webkit-sticky;
  position: sticky;
  top: 0;
  height: var(--stage);
  /* Words and debris fly off the phone. Nothing the scene draws may leave the
     stage, or it would land on the text below. */
  overflow: hidden;
  overflow: clip;
  /* Safari on iOS colours its bars from the sticky element that reaches an
     edge of the window. Without a colour of its own the stage gave it black
     at the bottom. */
  background: var(--page);
}

.top {
  position: absolute;
  left: var(--pad);
  right: var(--pad);
  top: calc(var(--pad) * 0.72);
  display: flex;
  justify-content: space-between;
  align-items: center;
  z-index: 6;
}
/* The logo itself is in base.css. On the neutral page the descriptor stands
   under the name instead of across the page. */
.descriptor { font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
html:not([data-theme="mint"]) .descriptor { display: none; }
/* The right end of the row: the rating and the downloads, a quiet line. */
.top-note { text-align: end; }
.proof { font-size: 14px; font-weight: 600; letter-spacing: -0.005em; white-space: nowrap; opacity: 0.62; }
.proof-short { display: none; }
/* A narrow window that still has the wide layout (a phone on its side): the
   shorter form, so the line stands clear of the name. */
@media (max-width: 720px) {
  .proof-long { display: none; }
  .proof-short { display: inline; }
}
.top .brand { flex: none; }
/* On the narrowest phones a long descriptor has no room beside the name: the
   rating stands alone there. */
@media (max-width: 359px) {
  .top[data-top] .descriptor { display: none; }
  /* And a long rating line may take two lines there. */
  .top[data-top] .top-note { min-width: 0; margin-inline-start: 14px; }
  .top[data-top] .proof { white-space: normal; text-wrap: balance; }
}
@media (max-width: 374px) {
  .top[data-top="longer"] .descriptor { display: none; }
}

.say {
  position: absolute;
  inset: 0;
  z-index: 2;
  font-size: var(--fs);
  font-weight: 1000;
  letter-spacing: -0.045em;
  line-height: 0.9;
  pointer-events: none;
}
/* The heading inside is only a name for four of the words, it has no box of its own. */
.say h1 { font: inherit; letter-spacing: inherit; }
/* Japanese, Chinese and Korean stop at bold (see base.css): every word of
   the headline, not only the four inside the heading. */
:is(:lang(ja), :lang(zh), :lang(ko)) .say { font-weight: 700; }
.say .w, .steps .w {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  visibility: hidden;
  pointer-events: auto;
  will-change: transform;
  /* Letter spacing leaves a gap after the full stop, trim it so slots align. */
  margin-right: -0.045em;
}

/* The neutral page once had a mint disc behind the phone. The owners did not
   like it, so the element stays hidden on every page. */
.disc { display: none; }

.phone {
  position: absolute;
  left: 50%;
  top: 50%;
  width: var(--pw);
  height: var(--ph);
  margin: calc(var(--ph) / -2 - var(--lift, 0px)) 0 0 calc(var(--pw) / -2);
  border-radius: calc(var(--ph) * 0.076);
  background: var(--ink);
  z-index: 3;
}
/* Flat offset shadow, sticker style. */
.phone::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--shade);
  transform: translate(calc(var(--ph) * 0.02), calc(var(--ph) * 0.024));
  z-index: -1;
}
.phone::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--ink);
  z-index: -1;
}
.key { position: absolute; width: calc(var(--ph) * 0.007); background: var(--ink); border-radius: 2px; }
.key-l1 { left: calc(var(--ph) * -0.005); top: 21%; height: 5.5%; }
.key-l2 { left: calc(var(--ph) * -0.005); top: 29%; height: 5.5%; }
.key-r { right: calc(var(--ph) * -0.005); top: 25%; height: 9%; }

.screen {
  position: absolute;
  inset: calc(var(--ph) * 0.016);
  border-radius: calc(var(--ph) * 0.06);
  overflow: hidden;
  background: #123c44;
  /* Some engines only clip a transformed child to the rounded corners inside
     its own stacking context. */
  isolation: isolate;
}
.reel { position: absolute; inset: 0; will-change: transform; }
.reel video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #123c44 url("/home/shore-demo.jpg") center / cover;
}
/* A coarse print screen over the footage. The clip is small, so its softness
   becomes a printed texture instead of a blurry upscale. */
.print {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(10, 10, 10, 0.34) 0.9px, transparent 1.2px), radial-gradient(rgba(10, 10, 10, 0.34) 0.9px, transparent 1.2px);
  background-size: 5px 5px;
  background-position: 0 0, 2.5px 2.5px;
}
.progress {
  position: absolute;
  left: 7%;
  right: 7%;
  bottom: 3%;
  height: 3px;
  border-radius: 2px;
  background: rgba(247, 243, 232, 0.4);
  overflow: hidden;
}
.progress i { display: block; height: 100%; background: #f7f3e8; transform-origin: 0 50%; transform: scaleX(0.3); }
.island {
  position: absolute;
  left: 50%;
  top: calc(var(--ph) * 0.013);
  width: calc(var(--ph) * 0.125);
  height: calc(var(--ph) * 0.036);
  margin-left: calc(var(--ph) * -0.0625);
  border-radius: 99px;
  background: var(--ink);
}

/* The captures. Stacked in the screen box, moved by scene.js, never filtered. */
.shot {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  display: block;
  /* Parked below the screen until the scroll brings it in. */
  transform: translate3d(0, 101%, 0);
  will-change: transform;
  /* An ink line where one screen meets the next. */
  outline: 2px solid var(--ink);
}

.fx {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
  pointer-events: none;
}

/* ------------------------------------------------------------------ steps */

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.steps {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
/* Same type as the headline, so the typography carries on. */
.steps h3 {
  opacity: 0;
  font-size: var(--fs);
  font-weight: 1000;
  letter-spacing: -0.045em;
  line-height: 0.9;
}
.steps .w { visibility: visible; }
.step[data-off] .w, .step[data-off] .s-line { pointer-events: none; }
.s-tag, .s-line { position: absolute; opacity: 0; will-change: transform, opacity; }
.s-tag {
  left: 0;
  top: 0;
  padding: 5px 8px 6px;
  border: 2px solid var(--ink);
  border-radius: 7px;
  background: var(--ink);
  color: var(--page);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1;
  white-space: nowrap;
}
.s-tag[data-tag="pro"] { background: var(--paper); color: var(--ink); }
html[data-accent^="mint"]:not([data-theme="mint"]) .s-tag:not([data-tag="pro"]) { background: var(--mint); color: var(--ink); }
/* Stands where the supporting line stood, right above the button. */
.s-line {
  left: var(--pad);
  bottom: var(--line-b, 170px);
  width: min(24em, 30vw);
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.012em;
  line-height: 1.38;
  pointer-events: auto;
}

/* Lives after the pinned track in the source. A box of no height that sticks
   to the bottom of the window, its content standing on that line: over the
   stage's lower left corner for as long as the stage is pinned, and it leaves
   with the stage. */
.pitch {
  position: -webkit-sticky;
  position: sticky;
  bottom: 0;
  height: 0;
  margin: 0 var(--pad);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: flex-start;
  z-index: 6;
  pointer-events: none;
}
.pitch > * { flex: none; pointer-events: auto; }
/* The button is first in the source, the supporting line stands above it here. */
.lede { order: -1; max-width: min(408px, 30vw); font-size: 17px; font-weight: 600; letter-spacing: -0.012em; line-height: 1.38; }
.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  margin: 18px 0 var(--pad);
  padding: 0 26px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.012em;
  text-decoration: none;
  box-shadow: 4px 5px 0 var(--shade);
}
.cta:hover { transform: translate(-1px, -1px); box-shadow: 5px 6px 0 var(--shade); }
.cta:active { transform: translate(2px, 3px); box-shadow: 2px 2px 0 var(--shade); }
/* Once the pinned part has let go of the window (scene.js says so), the
   button is ordinary content. A sticky button leaving through the top edge
   left Safari's status bar in its mint for the rest of the page. Its place in
   the page is where it sticks, so nothing moves at the switch. */
.pin-off .cta { position: relative; bottom: auto; }

/* The pause control is there for keyboard and screen reader users only. It is
   out of the layout and clipped to nothing, so no pointer can see or hit it.
   Focus can therefore only come from the keyboard, and then it shows in the
   lower right corner of the window, above everything else. */
.toggle {
  position: fixed;
  right: var(--pad);
  bottom: var(--pad);
  z-index: 9;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  background: var(--page);
  color: var(--ink);
  font: 700 14px/1 "DM Sans", system-ui, sans-serif;
  letter-spacing: -0.01em;
  cursor: pointer;
}
.toggle:focus {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
  min-height: 40px;
  padding: 0 14px 0 12px;
  border: 2px solid var(--ink);
  border-radius: 12px;
  overflow: visible;
  clip-path: none;
}
.toggle svg { fill: currentColor; display: block; flex: none; }
.toggle .i-play { display: none; }
.toggle[data-state="paused"] .i-play { display: block; }
.toggle[data-state="paused"] .i-pause { display: none; }
.toggle:hover { background: var(--ink); color: var(--page); }

/* -------------------------------------------- stacked layout: text above and below
   Narrow or upright windows. From 1024px wide the words always flank the phone. */

@media (max-width: 899px) and (max-aspect-ratio: 13/10), (max-width: 1023px) and (max-aspect-ratio: 1/1), (min-height: 600px) {
  .page {
    --ph: min(46vh, 112vw);
    --ph: min(46svh, 112vw);
    /* On a stage under 700px the phone gives up height, and stands a little
       higher, so that three lines of 16px fit between the lower word and the
       button and the upper word clears the header. Both terms are nothing at
       700px and above. The stage is as high as the smallest window, so the
       phone is this size and in this place from the hero to the release. */
    --ph: min(46svh, 112vw, var(--stage) * 0.62 - 112px);
    --lift: max(0px, (700px - var(--stage)) * 0.08);
    --pad: clamp(16px, 4.2vw, 40px);
    --fs: min((100vw - 2 * var(--pad)) / 6.5, 7.6vh);
    --fs: min((100vw - 2 * var(--pad)) / 6.5, 7.6svh);
    /* The button: how far it stands off the bottom, and how tall it is. Where
       the page runs under the home indicator (the talavo app), it stays
       clear of it. */
    --cb: max(14px, calc(var(--pad) * 0.9), calc(env(safe-area-inset-bottom) + 8px));
    --chh: 48px;
  }
  .top { top: max(12px, calc(var(--pad) * 0.8)); }
  .brand { font-size: 20px; }
  .brand-wave { width: 34px; height: 17px; }
  /* Stacked there is no room for a second line under the name: the upper
     word of the headline starts right below this row. The app icon stays, the
     descriptor goes back to the right end of the row as on the mint page. */
  .brand .brand-tile { width: 28px; height: 28px; }
  html:not([data-theme="mint"]) .brand { gap: 8px; }
  html:not([data-theme="mint"]) .brand .brand-sub { display: none; }
  html:not([data-theme="mint"]) .descriptor { display: block; }
  /* Two short lines at the right end, together as tall as the app icon, so
     the row keeps its height. */
  .descriptor { font-size: 13px; line-height: 1.1; }
  .proof { font-size: 12px; line-height: 1.1; }
  .proof-long { display: none; }
  .proof-short { display: inline; }
  /* A descriptor that is long in its language: smaller, so it stays clear of
     the name. */
  .top[data-top="longer"] .descriptor { font-size: 11px; }
  /* Only the button stays with the stage. It sticks to the bottom of the
     window through the whole pinned part. Its own place in the page is the
     bottom of the stage, exactly where it sticks, so when the pin lets go it
     leaves with the stage and never moves against it. The supporting line
     follows the stage. */
  .pitch { display: contents; }
  /* The line stands in the page, under the stage: it starts where the text
     of the sections below starts (--lp in lower.css), not at the inset of
     the stage. */
  .lede { max-width: none; margin: calc(26px + var(--cb)) clamp(20px, 3.2vw, 56px) 30px; font-size: 19px; }
  .cta {
    position: -webkit-sticky;
    position: sticky;
    bottom: var(--cb);
    display: flex;
    margin: calc(0px - var(--chh) - var(--cb)) var(--pad) 0;
    height: var(--chh);
    min-height: 0;
    padding: 0 12px;
    font-size: 16px;
    z-index: 6;
  }
  /* With the focus on it the control is a square as high as the button, on
     the button's right end, where there are no letters. */
  .toggle { bottom: var(--cb); }
  .toggle:focus { width: var(--chh); height: var(--chh); min-height: 0; padding: 0; justify-content: center; }
  .toggle span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* The line stands under the lower word, between the phone and the button. */
  .s-line {
    left: var(--pad);
    right: var(--pad);
    top: var(--line-t, 76%);
    bottom: auto;
    width: auto;
    font-size: var(--line-fs, 16px);
    line-height: 1.26;
    text-align: center;
    text-wrap: balance;
  }
  .s-tag { font-size: 13px; padding: 4px 7px 5px; }
}

/* Short phones: three lines of text have to fit between the lower word and
   the button, so the button sits a little lower and the lines a little closer
   (and the phone is smaller, see --ph above).
   "Short" is a class that scene.js sets from the height of the stage, not a
   height query: the stage does not change when a browser toolbar slides away,
   the window does, and nothing here may jump in the middle of the pin. */
@media (max-width: 899px) and (max-aspect-ratio: 13/10), (max-width: 1023px) and (max-aspect-ratio: 1/1), (min-height: 600px) {
  .page.short { --cb: max(8px, calc(env(safe-area-inset-bottom) + 8px)); --chh: 46px; }
  .short .s-line { line-height: 1.2; }
}

/* Small portrait phones: tuck the top row up so it clears the headline. */
@media (max-width: 1023px) and (max-aspect-ratio: 1/1) {
  .short .top { top: 8px; }
  .short .brand { font-size: 18px; gap: 6px; }
  .short .brand-wave { width: 30px; height: 15px; }
  .short .brand .brand-tile { width: 24px; height: 24px; }
  html:not([data-theme="mint"]) .short .brand { gap: 7px; }
  .short .descriptor { font-size: 12px; }
  .short .proof { font-size: 11px; }
}

/* Short and wide (a phone held sideways): only the button stays in the hero,
   the rest of the pitch follows below it, and the phone leaves headroom for
   the cat. */
@media (min-aspect-ratio: 13/10) and (max-height: 599px) {
  body {
    --stage: max(100vh, 340px);
    --stage: max(100svh, 340px);
  }
  .page {
    --ph: min(58vh, 640px);
    --ph: min(58svh, 640px);
    --lift: 0px;
  }
  .pitch { display: contents; }
  .lede { margin: calc(26px + var(--pad)) var(--pad) 30px; max-width: 34em; }
  /* As on upright phones: the button's own place is where it sticks. */
  .cta {
    position: -webkit-sticky;
    position: sticky;
    bottom: var(--pad);
    display: flex;
    width: max-content;
    height: 52px;
    margin: calc(-52px - var(--pad)) 0 0 var(--pad);
    z-index: 6;
  }
  .s-line { font-size: 15px; line-height: 1.3; width: min(20em, 28vw); }
}

/* A wide window with the stacked layout: the button keeps to the middle
   instead of running from edge to edge. */
@media (min-width: 900px) and (min-height: 600px) {
  .cta { width: 420px; max-width: calc(100% - 2 * var(--pad)); margin-inline: auto; }
}
