diff --git a/WEBSITE/README.md b/WEBSITE/README.md new file mode 100644 index 0000000000..8f9010cc3d --- /dev/null +++ b/WEBSITE/README.md @@ -0,0 +1,46 @@ +# Flexera Launcher website + +A one-page landing site for Flexera Launcher. Plain HTML, CSS and JavaScript: no build step, no +libraries, and nothing is loaded from anyone else's server. + +| File | What it is | +| --- | --- | +| `index.html` | The page and all its copy | +| `styles.css` | Layout, colours and the phone's look | +| `script.js` | The phone model, the scroll story, the playground, the scroll effects | +| `assets/` | App icon (WebP and PNG favicons), QR code, link-preview image (`og.jpg`) | +| `fonts/` | Unbounded, Space Grotesk, JetBrains Mono and Outfit, Latin subset, each with its licence | + +## Look at it + +Open `index.html` in a browser. To see it as a server would serve it: + +```sh +cd WEBSITE +python -m http.server 8080 +``` + +and open . + +## After a release + +- Change `VERSION` at the top of `script.js`. The page fills every version number from it. + `index.html` carries the same number as a fallback for browsers without JavaScript; replace + `0.13.0` there too. +- The download buttons and the QR code point at + `.../releases/download/latest/FlexeraLauncher.apk`, the fixed-name copy that every release + uploads, so they never need changing. +- If the hero changes, retake `assets/og.jpg` (1200 x 630, the top of the page). + +## The phone + +The phone is drawn in HTML at 390 x 844 and scaled to fit, three times over: a looping teaser in +the hero, one driven by the scroll position through the seven "How it works" chapters +(`storyState()` in `script.js`), and one in the playground that answers to touch and mouse. All three +render the same state object, described in `blank()`. App names and icons on it are generic +stand-ins, not real apps. + +## Fonts + +All four are under the SIL Open Font License 1.1 (`fonts/*-OFL.txt`), downloaded from Google Fonts +and served from this folder. diff --git a/WEBSITE/assets/favicon-32.png b/WEBSITE/assets/favicon-32.png new file mode 100644 index 0000000000..c68fe0a2a4 Binary files /dev/null and b/WEBSITE/assets/favicon-32.png differ diff --git a/WEBSITE/assets/favicon-64.png b/WEBSITE/assets/favicon-64.png new file mode 100644 index 0000000000..1cecfac4d1 Binary files /dev/null and b/WEBSITE/assets/favicon-64.png differ diff --git a/WEBSITE/assets/flexera-icon-256.webp b/WEBSITE/assets/flexera-icon-256.webp new file mode 100644 index 0000000000..4b725ccda0 Binary files /dev/null and b/WEBSITE/assets/flexera-icon-256.webp differ diff --git a/WEBSITE/assets/flexera-icon-512.webp b/WEBSITE/assets/flexera-icon-512.webp new file mode 100644 index 0000000000..0df3599936 Binary files /dev/null and b/WEBSITE/assets/flexera-icon-512.webp differ diff --git a/WEBSITE/assets/icon-180.png b/WEBSITE/assets/icon-180.png new file mode 100644 index 0000000000..3682655b29 Binary files /dev/null and b/WEBSITE/assets/icon-180.png differ diff --git a/WEBSITE/assets/og.jpg b/WEBSITE/assets/og.jpg new file mode 100644 index 0000000000..3369a77e55 Binary files /dev/null and b/WEBSITE/assets/og.jpg differ diff --git a/WEBSITE/assets/qr-latest-apk.svg b/WEBSITE/assets/qr-latest-apk.svg new file mode 100644 index 0000000000..7aa33176d7 --- /dev/null +++ b/WEBSITE/assets/qr-latest-apk.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/WEBSITE/fonts/jetbrains-mono-OFL.txt b/WEBSITE/fonts/jetbrains-mono-OFL.txt new file mode 100644 index 0000000000..821a3dac22 --- /dev/null +++ b/WEBSITE/fonts/jetbrains-mono-OFL.txt @@ -0,0 +1,93 @@ +Copyright 2020 The JetBrains Mono Project Authors (https://github.com/JetBrains/JetBrainsMono) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. + +This license is copied below, and is also available with a FAQ at: https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/WEBSITE/fonts/jetbrains-mono.woff2 b/WEBSITE/fonts/jetbrains-mono.woff2 new file mode 100644 index 0000000000..4d09cda4a4 Binary files /dev/null and b/WEBSITE/fonts/jetbrains-mono.woff2 differ diff --git a/WEBSITE/fonts/outfit-OFL.txt b/WEBSITE/fonts/outfit-OFL.txt new file mode 100644 index 0000000000..723cd447ed --- /dev/null +++ b/WEBSITE/fonts/outfit-OFL.txt @@ -0,0 +1,93 @@ +Copyright 2021 The Outfit Project Authors (https://github.com/Outfitio/Outfit-Fonts) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/WEBSITE/fonts/outfit.woff2 b/WEBSITE/fonts/outfit.woff2 new file mode 100644 index 0000000000..85e3332e6d Binary files /dev/null and b/WEBSITE/fonts/outfit.woff2 differ diff --git a/WEBSITE/fonts/space-grotesk-OFL.txt b/WEBSITE/fonts/space-grotesk-OFL.txt new file mode 100644 index 0000000000..f831dbc69f --- /dev/null +++ b/WEBSITE/fonts/space-grotesk-OFL.txt @@ -0,0 +1,93 @@ +Copyright 2020 The Space Grotesk Project Authors (https://github.com/floriankarsten/space-grotesk) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/WEBSITE/fonts/space-grotesk.woff2 b/WEBSITE/fonts/space-grotesk.woff2 new file mode 100644 index 0000000000..0f3474ee8a Binary files /dev/null and b/WEBSITE/fonts/space-grotesk.woff2 differ diff --git a/WEBSITE/fonts/unbounded-OFL.txt b/WEBSITE/fonts/unbounded-OFL.txt new file mode 100644 index 0000000000..1c7db28325 --- /dev/null +++ b/WEBSITE/fonts/unbounded-OFL.txt @@ -0,0 +1,93 @@ +Copyright 2022 The Unbounded Project Authors (https://github.com/googlefonts/unbounded) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +https://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/WEBSITE/fonts/unbounded.woff2 b/WEBSITE/fonts/unbounded.woff2 new file mode 100644 index 0000000000..3260a1939e Binary files /dev/null and b/WEBSITE/fonts/unbounded.woff2 differ diff --git a/WEBSITE/index.html b/WEBSITE/index.html new file mode 100644 index 0000000000..401ad29e62 --- /dev/null +++ b/WEBSITE/index.html @@ -0,0 +1,391 @@ + + + + + + Flexera Launcher · One thumb. Every app. + + + + + + + + + + + + + + + + + + + + + +
+ + +
+ +
+
+

Android launcher / v0.13.0 / free

+

+ One thumb. + Every app. +

+

Flexera is a home screen for Android that stays calm, with an app list you fly through using one thumb. No ads. No account. Nothing about you leaves your phone.

+ +

Android 8.0 or newer · Updates itself · No Play Store needed

+
+ + +
+
+ + + + +
+
+

[ 01 ] How it works

+

+ Keep scrolling. + The phone talks. +

+
+ +
+ + +
+
+
+

01 / 07

+

Home, minus the noise.

+

Pages, folders and widgets, in the Android layout you already know. No feed, no ads, nothing you didn't put there yourself.

+

Gesture None. Just look.

+
+
+
+
+

02 / 07

+

Swipe up. A to Z.

+

Every app in one clean column, straight over your wallpaper. New messages show up under the app's name, so you see them before you open anything.

+

Gesture Swipe up

+
+
+
+
+

03 / 07

+

Ride the wave.

+

Slide your thumb along the letters on the edge. They swell around it like a wave, and the list drops that letter into the middle of the screen, right where your thumb already is. Swipe up and keep holding to scrub straight from home.

+

Gesture Slide on the edge

+
+
+
+
+

04 / 07

+

Folders in focus.

+

Open a folder and the rest of the screen melts into a soft blur, wallpaper included. Just the apps you came for.

+

Gesture Tap

+
+
+
+
+

05 / 07

+

Swipe into nothing.

+

There's no page left of your first one. Swipe there anyway and your camera opens. Or any app, or any shortcut you pick. Works past your last page too.

+

Gesture Swipe past the edge

+
+
+
+
+

06 / 07

+

Widgets that fit in.

+

A clock that lines up with your icons: the date, a one-line forecast, left, center or right, thin to bold. Next to it, a picture frame in your icon shape that turns to the next photo every ten seconds.

+

Gesture Hold, then edit

+
+
+
+
+

07 / 07

+

Out of sight.

+

Hold any app in the list and tap Hide app. Gone from the list and from search. Changed your mind? Undo, or bring it back from Settings whenever you like.

+

Gesture Hold, then hide

+
+
+
+
+
+ + +
+
+

[ 02 ] The details

+

+ Small things. + Done properly. +

+
+ +
+
+ + 01 +

Lefty? Flip it.

+

Move the alphabet to the left edge. One switch, and the whole list follows your other thumb.

+
+
+ + 02 +

Compact or comfy.

+

Pick how tall the rows in your app list are. More apps on screen, or bigger targets.

+
+
+ + 03 +

Updates itself.

+

About once a day it checks for a new version and installs it when you say so. No store needed.

+
+
+ + 04 +

Move in, one tap.

+

Coming from Smart Launcher? Import your home screen from its backup: layout, folders and your photo widget.

+
+
+ + 05 +

Make it yours.

+

Icon packs, icon shapes, themed icons and colors. Labels on or off. Your grid, your rules.

+
+
+ + 06 +

Gestures for everything.

+

Double-tap to lock, swipe down for notifications, and more. Every gesture is yours to set.

+
+
+ +
+
0Ads
+
0Accounts
+
2Reasons to
go online
+
1Thumb
needed
+
+
+ + +
+

[ 03 ] Privacy

+

It goes online for exactly two things.

+
+
+ 1 +

Updates

+

About once a day it asks its own release page whether there's a newer version. Installing it is your call.

+
+
+ 2 +

Weather, if you ask

+

Pick a town for the clock's weather line and it asks Open-Meteo about that place. Only that place. It never uses your location.

+
+
+

Nothing else about you, your apps or your phone leaves it.

+

This page plays by the same rules: no cookies, no analytics, no fonts or scripts from anyone else.

+
+ + +
+
+

[ 04 ] Playground

+

+ Go on. + Touch it. +

+
+
+
+ +
+
+

Swipe up on the home screen to open your apps.

+
+ + + + + + +
+
    +
  • Swipe up on the home screen
  • +
  • Drag along the letters on the right
  • +
  • Tap a folder, then outside it
  • +
  • Hold an app in the list
  • +
  • Swipe right on the first page
  • +
  • Hold the clock to restyle it
  • +
  • Swipe up from the bottom edge to go home
  • +
+
+
+
+ + +
+

[ 05 ] Get it

+

+ Get + Flexera. +

+
+
+ +
Scan with your phone's camera
+
+ +
+ + Download the APK + +

Version 0.13.0 · Android 8.0 or newer · Free, no ads

+
    +
  1. Download the APK on your Android phone.
  2. +
  3. Open it. When Android asks, let your browser install apps.
  4. +
  5. Make it home. Press Home and pick Flexera, or go to Settings → Apps → Default apps → Home app.
  6. +
+ Every release and its notes +
+
+ +
+
+ Why isn't it on Google Play? +

It's a small independent project, shipped straight from its own release page. The app checks that page for new versions, so you won't miss updates.

+
+
+ Android warns me before installing. Is that normal? +

Yes. Android double-checks every app installed from outside the Play Store. Play Protect may also mention that the app can ask for notification access (for notification dots and previews) and accessibility (only for gestures such as double-tap to lock). Both stay off until you turn them on yourself.

+
+
+ Will it work on my phone? +

It runs on Android 8.0 and newer. The blur behind folders needs Android 12 or newer; on older versions folders open over a plain dimmed background.

+
+
+ Can I go back to my old launcher? +

Any time. Settings → Apps → Default apps → Home app, and pick the old one. Nothing is deleted.

+
+
+ What does it cost? +

Nothing. No ads, no in-app purchases, no account.

+
+
+
+
+ + + + diff --git a/WEBSITE/script.js b/WEBSITE/script.js new file mode 100644 index 0000000000..bc7b587696 --- /dev/null +++ b/WEBSITE/script.js @@ -0,0 +1,1263 @@ +/* Flexera Launcher landing page. Plain JavaScript, no libraries, nothing loaded from elsewhere. + * + * The phone is built here, three times: a looping teaser in the hero, one that the page's scroll + * position drives through seven chapters, and one people can play with. All three draw from the + * same state object (see blank()), so a picture of the phone is a pure function of that state: + * the story computes it from the scroll position, the playground animates it from gestures. */ +(() => { + 'use strict'; + + /** The version shown on the page. Change it here after a release. */ + const VERSION = '0.13.0'; + + const motion = window.matchMedia('(prefers-reduced-motion: reduce)'); + let reduced = motion.matches; + + /* ------------------------------------------------------------------ math */ + const clamp = (v, a = 0, b = 1) => (v < a ? a : v > b ? b : v); + const lerp = (a, b, t) => a + (b - a) * t; + const seg = (t, a, b) => clamp((t - a) / (b - a)); + const inOut = (t) => (t < 0.5 ? 4 * t * t * t : 1 - Math.pow(-2 * t + 2, 3) / 2); + const outCubic = (t) => 1 - Math.pow(1 - t, 3); + const linear = (t) => t; + const smooth = (t) => t * t * (3 - 2 * t); + const E = (t, a, b) => inOut(seg(t, a, b)); + /** Eased value along key points [[t, value], ...]. */ + function keys(t, pts) { + if (t <= pts[0][0]) return pts[0][1]; + for (let i = 1; i < pts.length; i++) { + if (t <= pts[i][0]) return lerp(pts[i - 1][1], pts[i][1], inOut(seg(t, pts[i - 1][0], pts[i][0]))); + } + return pts[pts.length - 1][1]; + } + /** Eased position along key points [[t, x, y], ...]. */ + const route = (t, pts) => ({ x: keys(t, pts.map((p) => [p[0], p[1]])), y: keys(t, pts.map((p) => [p[0], p[2]])) }); + const near = (t, list, eps) => list.some((v) => t > v - eps && t < v + eps * 2); + /** A pull against a wall: follows the finger at first, then gives less and less. */ + const rubber = (x) => Math.sign(x) * 96 * (1 - Math.exp(-Math.abs(x) / 140)); + + /* ------------------------------------------------------------------ data */ + const GRADS = { + cyan: ['#1ddbfd', '#3d6ff2'], + blue: ['#4a7cf6', '#653df0'], + violet: ['#8a4dff', '#f04ff0'], + sunset: ['#fc59fb', '#ff8a5b'], + mint: ['#2ee6a8', '#0f9fb8'], + gold: ['#ffd34e', '#ff9440'], + rose: ['#ff5c7a', '#cf2470'], + slate: ['#8e96bd', '#4a4f78'], + }; + const APPS = [ + ['Authenticator', 'shield', 'slate'], + ['Banking', 'bank', 'mint'], + ['Books', 'book', 'gold'], + ['Browser', 'globe', 'cyan'], + ['Calculator', 'calc', 'slate'], + ['Calendar', 'cal', 'blue'], + ['Camera', 'camera', 'violet'], + ['Clock', 'clock', 'blue'], + ['Contacts', 'person', 'cyan'], + ['Files', 'files', 'gold'], + ['Fitness', 'pulse', 'rose'], + ['Gallery', 'image', 'sunset'], + ['Mail', 'mail', 'rose'], + ['Maps', 'map', 'mint'], + ['Messages', 'msg', 'cyan', 'Sam: Dinner at 8? I booked a table'], + ['Music', 'music', 'violet'], + ['News', 'news', 'slate'], + ['Notes', 'notes', 'gold'], + ['Phone', 'phone', 'mint'], + ['Podcasts', 'mic', 'violet'], + ['Recorder', 'wave', 'rose'], + ['Settings', 'sliders', 'slate'], + ['Shop', 'bag', 'sunset'], + ['Translate', 'translate', 'blue'], + ['Travel', 'plane', 'cyan'], + ['Video', 'play', 'rose'], + ['Wallet', 'wallet', 'mint'], + ['Weather', 'sun', 'gold'], + ['Zen', 'moon', 'blue'], + ].map(([n, g, c, note]) => ({ n, g, c, note })); + const APP = Object.fromEntries(APPS.map((a) => [a.n, a])); + const LETTERS = [...new Set(APPS.map((a) => a.n[0]))]; + const L = (letter) => LETTERS.indexOf(letter); + const FOLDERS = { + media: { title: 'Media', apps: ['Video', 'Podcasts', 'Gallery', 'Books', 'News'] }, + tools: { title: 'Tools', apps: ['Calculator', 'Files', 'Recorder', 'Translate', 'Notes', 'Authenticator'] }, + }; + const HOME = [ + [ + { k: 'clock', c: 0, r: 0, w: 4, h: 2 }, + { k: 'pics', c: 2, r: 2, w: 2, h: 2 }, + { app: 'Maps', c: 0, r: 2 }, { app: 'Music', c: 1, r: 2 }, + { app: 'Mail', c: 0, r: 3 }, { app: 'Calendar', c: 1, r: 3 }, + { folder: 'media', c: 0, r: 4 }, { app: 'Weather', c: 1, r: 4 }, { app: 'Wallet', c: 2, r: 4 }, { folder: 'tools', c: 3, r: 4 }, + { app: 'Phone', c: 0, r: 5 }, { app: 'Messages', c: 1, r: 5, dot: true }, { app: 'Browser', c: 2, r: 5 }, { app: 'Camera', c: 3, r: 5 }, + ], + [ + { app: 'Fitness', c: 0, r: 0 }, { app: 'Zen', c: 1, r: 0 }, { app: 'Travel', c: 2, r: 0 }, { app: 'Shop', c: 3, r: 0 }, + { app: 'Banking', c: 0, r: 1 }, { app: 'Contacts', c: 1, r: 1 }, { app: 'Clock', c: 2, r: 1 }, { app: 'Settings', c: 3, r: 1 }, + { app: 'Translate', c: 0, r: 2 }, { app: 'Recorder', c: 1, r: 2 }, + ], + ]; + + /* ------------------------------------------------------------------ the phone */ + const W = 390; + const H = 844; + const SIDE = 14; + const CW = (W - 2 * SIDE) / 4; + const RH = 104; + const GRID_TOP = 56; + const LIST_TOP = 46; + const MENU_X = 120; + const CLOCK_W = 4 * CW - 36; + const DEFAULT_WEIGHT = 300; + + const gl = (id, cls = 'gl') => ``; + function icon(app, cls = '') { + const [a, b] = GRADS[app.c]; + return `${gl(app.g, '')}`; + } + + function cellMarkup(it) { + const box = `left:${SIDE + it.c * CW}px;top:${GRID_TOP + it.r * RH}px;width:${(it.w || 1) * CW}px;height:${(it.h || 1) * RH}px`; + if (it.k === 'clock') { + return `
+
9:41
+
Thursday, November 12
+
18° · Clear
`; + } + if (it.k === 'pics') { + return `
+
`; + } + if (it.folder) { + const f = FOLDERS[it.folder]; + return `
+ ${f.apps.slice(0, 4).map((n) => icon(APP[n], ' ic--mini')).join('')} + ${f.title}
`; + } + const app = APP[it.app]; + return `
${icon(app)}${it.dot ? '' : ''}${app.n}
`; + } + + function listMarkup() { + let html = ``; + for (const letter of LETTERS) { + html += `
${letter}
`; + for (const a of APPS.filter((x) => x.n[0] === letter)) { + html += `
${icon(a)} + ${a.n}${a.note ? `${a.note}` : ''}
`; + } + html += '
'; + } + return html; + } + + function phoneMarkup() { + const pages = HOME.map((items, pi) => `
${items.map(cellMarkup).join('')}
`).join(''); + const dots = HOME.map((_, i) => ``).join(''); + return `
+
+
${pages}
${dots}
+
+
+
+
+
+
${listMarkup()}
+
${gl('search', 'gl')}${LETTERS.map((l) => `${l}`).join('')}
+
+
+ +
Podcasts is hidden
+

Clock

+

Alignment

+
LeftCenterRight
+

Size

+
SmallMediumLarge
+

Weight

+
ThinLightRegularBold
+
+
+
+
VideoPhotoPortrait
+
${gl('flip')}
+ + +
+
9:41
+ + +
+
`; + } + + /** Everything the phone can show. Numbers are 0..1 unless noted. */ + function blank() { + return { + drawer: 0, + list: 0, // px the app list is scrolled + scrub: 0, // letter index, fractional + scrubShow: 0, + folder: 0, + folderId: 'media', + pull: 0, // px the pages are dragged sideways + page: 0, + camera: 0, + flash: 0, + sheet: 0, + align: 0, // 0 left, .5 center, 1 right + weight: DEFAULT_WEIGHT, + menu: 0, + menuY: 420, + menuPick: 0, + held: null, + hidden: {}, + snack: 0, + snackText: 'Podcasts is hidden', + finger: { x: 195, y: 600, o: 0, press: 0, ring: 0 }, + }; + } + + /** Offset of el inside ancestor, summed along the offsetParent chain (ignores transforms). */ + function offsetIn(el, ancestor) { + let x = 0; + let y = 0; + while (el && el !== ancestor) { + x += el.offsetLeft; + y += el.offsetTop; + el = el.offsetParent; + } + return { x, y }; + } + + class Phone { + constructor(host) { + this.host = host; + host.innerHTML = phoneMarkup(); + const q = (sel) => host.querySelector(sel); + const qa = (sel) => [...host.querySelectorAll(sel)]; + this.el = q('.phone'); + this.screen = q('.screen'); + this.r = { + world: q('.world'), home: q('.home'), pages: q('.pages'), dots: qa('.pagedots i'), glow: q('.glow'), + fscrim: q('.fscrim'), fcard: q('.fcard'), fgrid: q('.fcard__grid'), ftitle: q('.fcard__title'), + drawer: q('.drawer'), drawerIn: q('.drawer__in'), list: q('.list'), alpha: q('.alpha'), letters: qa('.alpha__l'), bubble: q('.bubble'), + menu: q('.menu'), menuHide: q('.mi--hide'), snack: q('.snack'), snackT: q('.snack__t'), + sheet: q('.sheet'), segAlign: qa('[data-seg="align"] span'), segWeight: qa('[data-seg="weight"] span'), + cam: q('.cam'), flash: q('.cam__flash'), finger: q('.finger'), ring: q('.finger__ring'), + clockLines: qa('.clk__line > span'), clockTime: q('.clk__time'), time: q('[data-time]'), date: q('[data-date]'), stime: q('.sbar__time'), + pics: qa('.pic'), + rows: new Map(qa('.row').map((el) => [el.dataset.row, el])), + }; + this.scale = 0.5; + this.picIndex = 0; + this.folderId = null; + this.fillFolder('media'); + this.fit(); + if ('ResizeObserver' in window) new ResizeObserver(() => this.fit()).observe(host); + this.measure(); + } + + fit() { + const w = this.host.clientWidth; + if (!w) return; + this.scale = w / 414; + this.el.style.setProperty('--s', this.scale.toFixed(5)); + } + + /** Reads the layout once, so that animating never has to. Call again when rows change height. */ + measure() { + const r = this.r; + const g = {}; + g.groupTop = {}; + for (const grp of r.list.querySelectorAll('.grp')) g.groupTop[grp.dataset.letter] = grp.offsetTop; + g.rowTop = {}; + g.rowH = {}; + for (const [name, el] of r.rows) { + g.rowTop[name] = el.offsetTop; + g.rowH[name] = el.offsetHeight || 54; + } + g.maxScroll = Math.max(0, LIST_TOP + r.list.offsetHeight + 150 - H); + const a = offsetIn(r.alpha, this.screen); + g.alphaX = a.x + r.alpha.offsetWidth / 2; + g.letterY = r.letters.map((l) => a.y + l.offsetTop + l.offsetHeight / 2); + g.home = {}; + for (const el of this.host.querySelectorAll('.page:first-child [data-key]')) { + const target = el.querySelector('.ic, .fic') || el; + const p = offsetIn(target, this.screen); + g.home[el.dataset.key] = { x: p.x + target.offsetWidth / 2, y: p.y + target.offsetHeight / 2 }; + } + g.fcx = r.fcard.offsetLeft + r.fcard.offsetWidth / 2; + g.fcy = r.fcard.offsetTop + r.fcard.offsetHeight / 2; + const sheetTop = H - r.sheet.offsetHeight; + g.seg = {}; + for (const sp of this.host.querySelectorAll('.seg span')) { + const p = offsetIn(sp, r.sheet); + g.seg[sp.dataset.k] = { x: p.x + sp.offsetWidth / 2, y: sheetTop + p.y + sp.offsetHeight / 2 }; + } + const m = offsetIn(r.menuHide, r.menu); + g.menuHide = { x: m.x + r.menuHide.offsetWidth / 2, y: m.y + r.menuHide.offsetHeight / 2 }; + g.menuH = r.menu.offsetHeight || 212; + this.g = g; + } + + fillFolder(id) { + this.folderId = id; + const f = FOLDERS[id]; + this.r.fgrid.innerHTML = f.apps.map((n) => `
${icon(APP[n])}${n}
`).join(''); + this.r.ftitle.textContent = f.title; + if (this.g) this.g.fcy = this.r.fcard.offsetTop + this.r.fcard.offsetHeight / 2; + } + + /** Where the list rests when a letter is chosen: its header a little above the middle. */ + scrollFor(i) { + const letter = LETTERS[clamp(Math.round(i), 0, LETTERS.length - 1)]; + return clamp(LIST_TOP + this.g.groupTop[letter] - H * 0.42, 0, this.g.maxScroll); + } + /** scrollFor between letters, snapping near each one, for scroll-driven scrubbing. */ + scrollAt(f) { + const a = Math.floor(f); + const b = Math.ceil(f); + if (a === b) return this.scrollFor(a); + return lerp(this.scrollFor(a), this.scrollFor(b), smooth(seg(f - a, 0.3, 0.7))); + } + letterYAt(f) { + const ys = this.g.letterY; + const a = clamp(Math.floor(f), 0, ys.length - 1); + const b = clamp(a + 1, 0, ys.length - 1); + return lerp(ys[a], ys[b], clamp(f - a)); + } + letterAtY(y) { + const ys = this.g.letterY; + if (y <= ys[0]) return 0; + for (let i = 1; i < ys.length; i++) if (y <= ys[i]) return i - 1 + (y - ys[i - 1]) / (ys[i] - ys[i - 1]); + return ys.length - 1; + } + rowY(name, scroll) { + return LIST_TOP + this.g.rowTop[name] + this.g.rowH[name] / 2 - scroll; + } + + tick(now, date) { + if (this.r.time.textContent !== now) { + this.r.time.textContent = now; + this.r.stime.textContent = now; + } + if (this.r.date.textContent !== date) this.r.date.textContent = date; + } + + nextPicture() { + this.r.pics[this.picIndex].classList.remove('on'); + this.picIndex = (this.picIndex + 1) % this.r.pics.length; + this.r.pics[this.picIndex].classList.add('on'); + } + + render(s) { + const r = this.r; + const g = this.g; + const css = (el, prop, val) => { + const k = '_' + prop; + if (el[k] !== val) { + el[k] = val; + el.style[prop] = val; + } + }; + const d = s.drawer; + const f = s.folder; + + // Wallpaper and home share one layer, so a folder blurs both. + css(r.world, 'transform', f > 0.001 ? `scale(${(1 - 0.035 * f).toFixed(4)})` : ''); + css(r.world, 'filter', f > 0.001 ? `blur(${(f * 16).toFixed(2)}px)` : ''); + css(r.home, 'opacity', (1 - d).toFixed(3)); + css(r.home, 'transform', d > 0.001 ? `translateY(${(-26 * d).toFixed(1)}px) scale(${(1 - 0.05 * d).toFixed(4)})` : ''); + css(r.pages, 'transform', `translateX(${(-s.page * W + s.pull).toFixed(1)}px)`); + css(r.glow, 'opacity', clamp(s.pull / 70).toFixed(3)); + const page = Math.round(clamp(s.page - s.pull / W, 0, HOME.length - 1)); + r.dots.forEach((dot, i) => dot.classList.toggle('on', i === page)); + + // Folder: grows out of its icon. + css(r.fscrim, 'opacity', (0.34 * f).toFixed(3)); + if (s.folderId !== this.folderId) this.fillFolder(s.folderId); + if (f > 0.001) { + const from = g.home[s.folderId] || { x: g.fcx, y: g.fcy }; + css(r.fcard, 'visibility', 'visible'); + css(r.fcard, 'opacity', clamp(f * 2.2).toFixed(3)); + css(r.fcard, 'transform', `translate(${lerp(from.x - g.fcx, 0, f).toFixed(1)}px, ${lerp(from.y - g.fcy, 0, f).toFixed(1)}px) scale(${lerp(0.2, 1, f).toFixed(4)})`); + } else { + css(r.fcard, 'visibility', 'hidden'); + } + + // App list. + css(r.drawer, 'visibility', d > 0.002 ? 'visible' : 'hidden'); + css(r.drawer, 'opacity', d.toFixed(3)); + css(r.drawerIn, 'transform', d < 0.999 ? `translateY(${((1 - d) * 56).toFixed(1)}px)` : ''); + css(r.list, 'transform', `translateY(${(-s.list).toFixed(1)}px)`); + + // The wave: letters near the thumb swell and lean out; the chosen one rides in a bubble. + const show = s.scrubShow; + const sel = clamp(Math.round(s.scrub), 0, LETTERS.length - 1); + r.letters.forEach((el, i) => { + const k = show * Math.exp(-((i - s.scrub) ** 2) / 4.2); + css(el, 'transform', k > 0.002 ? `translateX(${(-46 * k).toFixed(1)}px) scale(${(1 + 0.6 * k).toFixed(3)})` : ''); + el.classList.toggle('on', show > 0.4 && i === sel); + }); + css(r.bubble, 'opacity', show.toFixed(3)); + if (show > 0.001) { + css(r.bubble, 'transform', `translate(${(g.alphaX - 140).toFixed(1)}px, ${(this.letterYAt(s.scrub) - 33).toFixed(1)}px) scale(${(0.5 + 0.5 * show).toFixed(3)})`); + if (r.bubble.textContent !== LETTERS[sel]) r.bubble.textContent = LETTERS[sel]; + } + + // Hidden apps fold away. + for (const [name, el] of r.rows) { + const x = s.hidden[name] || 0; + if (el._hx !== x) { + if (!el._h) el._h = el.offsetHeight; + el._hx = x; + el.style.height = x ? `${((1 - x) * el._h).toFixed(1)}px` : ''; + el.style.opacity = x ? (1 - x).toFixed(3) : ''; + } + el.classList.toggle('held', s.held === name); + } + + // Long-press menu and the message after hiding. + css(r.menu, 'visibility', s.menu > 0.002 ? 'visible' : 'hidden'); + css(r.menu, 'opacity', s.menu.toFixed(3)); + css(r.menu, 'transform', `translate(${MENU_X}px, ${s.menuY.toFixed(1)}px) scale(${(0.9 + 0.1 * s.menu).toFixed(3)})`); + r.menuHide.classList.toggle('pick', s.menuPick > 0.5); + css(r.snack, 'visibility', s.snack > 0.002 ? 'visible' : 'hidden'); + css(r.snack, 'opacity', s.snack.toFixed(3)); + css(r.snack, 'transform', `translateY(${((1 - s.snack) * 26).toFixed(1)}px)`); + if (r.snackT.textContent !== s.snackText) r.snackT.textContent = s.snackText; + + // Camera, revealed from the left edge. + css(r.cam, 'visibility', s.camera > 0.001 ? 'visible' : 'hidden'); + css(r.cam, 'clipPath', `inset(0 ${((1 - s.camera) * 100).toFixed(2)}% 0 0)`); + css(r.flash, 'opacity', s.flash.toFixed(3)); + + // Clock options sheet and the clock itself. + css(r.sheet, 'transform', `translateY(${((1 - s.sheet) * 105).toFixed(2)}%)`); + const pick = (els, v) => { + let best = null; + let bd = Infinity; + for (const e of els) { + const dd = Math.abs(+e.dataset.v - v); + if (dd < bd) { + bd = dd; + best = e; + } + } + els.forEach((e) => e.classList.toggle('on', e === best)); + }; + pick(r.segAlign, s.align); + pick(r.segWeight, s.weight); + css(r.clockTime, 'fontWeight', String(Math.round(s.weight))); + for (const sp of r.clockLines) { + css(sp, 'transform', s.align > 0.001 ? `translateX(${(s.align * (CLOCK_W - sp.offsetWidth)).toFixed(1)}px)` : ''); + } + + // The finger that shows each gesture. + const fg = s.finger; + css(r.finger, 'opacity', fg.o.toFixed(3)); + if (fg.o > 0.001) { + css(r.finger, 'transform', `translate(${fg.x.toFixed(1)}px, ${fg.y.toFixed(1)}px) scale(${(1 - 0.16 * fg.press).toFixed(3)})`); + } + const ring = fg.ring.toFixed(3); + if (r.ring._ring !== ring) { + r.ring._ring = ring; + r.ring.style.setProperty('--ring', ring); + } + } + } + + /* ------------------------------------------------------------------ the story */ + /** + * The phone at story position P, from 0 to 7: one unit per chapter, each chapter's end matching + * the next one's start, so scrolling either way plays the same film. + */ + function storyState(ph, P) { + const s = blank(); + P = clamp(P, 0, 7); + const ch = Math.min(6, Math.floor(P)); + const t = P - ch; + const F = s.finger; + const g = ph.g; + + switch (ch) { + case 0: { // home; a finger gets ready at the bottom + const a = seg(t, 0.62, 0.82); + F.o = a; + F.x = 195; + F.y = 790 - 8 * a; + break; + } + case 1: { // swipe up, the list fades in, flicks to M + const up = E(t, 0.05, 0.36); + F.x = 195; + F.y = lerp(782, 470, up); + F.o = 1 - seg(t, 0.36, 0.46); + F.press = t < 0.36 ? 1 : 0; + s.drawer = E(t, 0.1, 0.4); + s.list = E(t, 0.5, 0.92) * ph.scrollFor(L('M')); + break; + } + case 2: { // scrub M → Z → C + s.drawer = 1; + const idx = keys(t, [[0.15, L('M')], [0.48, LETTERS.length - 1], [0.53, LETTERS.length - 1], [0.86, L('C')]]); + s.scrub = idx; + s.scrubShow = seg(t, 0.06, 0.15) * (1 - seg(t, 0.88, 0.97)); + s.list = ph.scrollAt(idx); + F.x = lerp(g.alphaX - 60, g.alphaX, E(t, 0, 0.1)); + F.y = ph.letterYAt(idx); + F.o = seg(t, 0, 0.08) * (1 - seg(t, 0.88, 0.97)); + F.press = s.scrubShow > 0.5 ? 1 : 0; + break; + } + case 3: { // back home, tap the folder, blur + s.drawer = 1 - E(t, 0, 0.18); + s.list = ph.scrollFor(L('C')); + const fp = g.home.media; + F.x = fp.x; + F.y = fp.y; + F.o = seg(t, 0.2, 0.27) * (1 - seg(t, 0.42, 0.5)); + F.press = t > 0.29 && t < 0.36 ? 1 : 0; + s.folder = E(t, 0.33, 0.62); + break; + } + case 4: { // close the folder, pull past the first page, camera + s.folder = 1 - E(t, 0, 0.15); + const drag = E(t, 0.26, 0.55); + F.x = lerp(70, 300, drag); + F.y = 420; + F.o = seg(t, 0.18, 0.25) * (1 - seg(t, 0.55, 0.62)); + F.press = t > 0.25 && t < 0.56 ? 1 : 0; + s.pull = rubber(drag * 230) * (1 - E(t, 0.56, 0.7)); + s.camera = E(t, 0.56, 0.82); + s.flash = seg(t, 0.9, 0.92) * (1 - seg(t, 0.93, 0.99)); + break; + } + case 5: { // close the camera, hold the clock, restyle it + s.camera = 1 - E(t, 0, 0.14); + const ck = g.home.clock; + const sg = g.seg; + const taps = [0.42, 0.52, 0.62, 0.72, 0.81, 0.88, 0.95]; + const fp = route(t, [ + [0.16, ck.x, ck.y], [0.32, ck.x, ck.y], + [taps[0], sg['align-0.5'].x, sg['align-0.5'].y], + [taps[1], sg['align-1'].x, sg['align-1'].y], + [taps[2], sg['align-0'].x, sg['align-0'].y], + [taps[3], sg['weight-100'].x, sg['weight-100'].y], + [taps[4], sg['weight-400'].x, sg['weight-400'].y], + [taps[5], sg['weight-700'].x, sg['weight-700'].y], + [taps[6], sg['weight-300'].x, sg['weight-300'].y], + ]); + F.x = fp.x; + F.y = fp.y; + F.o = seg(t, 0.14, 0.2) * (1 - seg(t, 0.96, 1)); + F.ring = seg(t, 0.2, 0.3) * (1 - seg(t, 0.3, 0.33)); + F.press = (t > 0.2 && t < 0.31) || near(t, taps, 0.012) ? 1 : 0; + s.sheet = E(t, 0.3, 0.42); + s.align = keys(t, [[0.42, 0], [0.45, 0.5], [0.52, 0.5], [0.55, 1], [0.62, 1], [0.65, 0]]); + s.weight = keys(t, [[0.72, 300], [0.75, 100], [0.81, 100], [0.84, 400], [0.88, 400], [0.91, 700], [0.95, 700], [0.98, 300]]); + break; + } + case 6: { // the list again, hold Podcasts, Hide app, Undo message + s.sheet = 1 - E(t, 0, 0.12); + s.drawer = E(t, 0.12, 0.28); + s.list = ph.scrollFor(L('P')); + const ry = ph.rowY('Podcasts', s.list); + s.menuY = ry + 34; + const hide = { x: MENU_X + g.menuHide.x, y: s.menuY + g.menuHide.y }; + const fp = route(t, [[0.3, 150, ry], [0.56, 150, ry], [0.64, hide.x, hide.y]]); + F.x = fp.x; + F.y = fp.y; + F.o = seg(t, 0.28, 0.33) * (1 - seg(t, 0.72, 0.8)); + F.ring = seg(t, 0.34, 0.5) * (1 - seg(t, 0.5, 0.53)); + F.press = (t > 0.33 && t < 0.52) || (t > 0.65 && t < 0.69) ? 1 : 0; + s.held = t > 0.34 && t < 0.72 ? 'Podcasts' : null; + s.menu = E(t, 0.5, 0.56) * (1 - E(t, 0.69, 0.74)); + s.menuPick = t > 0.65 && t < 0.72 ? 1 : 0; + s.hidden = { Podcasts: E(t, 0.72, 0.82) }; + s.snack = E(t, 0.76, 0.84); + break; + } + default: + break; + } + return s; + } + + function setupStory(ph) { + const box = document.querySelector('.story__steps'); + const steps = [...document.querySelectorAll('[data-step]')]; + const num = document.querySelector('[data-story-num]'); + const rail = [...document.querySelectorAll('[data-story-rail] li')]; + let lastChapter = -1; + let lastP = -1; + return function update() { + const vh = window.innerHeight; + const P = clamp(-box.getBoundingClientRect().top / vh + 0.5, 0, 7); + const ch = Math.min(6, Math.floor(P)); + // Without motion, each chapter shows its finished picture. + const shown = reduced ? ch + 0.985 : P; + if (Math.abs(shown - lastP) > 0.0002) { + lastP = shown; + ph.render(storyState(ph, shown)); + } + if (ch !== lastChapter) { + lastChapter = ch; + steps.forEach((el, i) => el.classList.toggle('is-active', i === ch)); + num.textContent = String(ch + 1).padStart(2, '0'); + rail.forEach((li, i) => { + li.classList.toggle('on', i === ch); + li.classList.toggle('done', i < ch); + }); + } + }; + } + + /* ------------------------------------------------------------------ the hero teaser */ + /** Story positions 0.55 to 3.19 on a loop: home, swipe up, scrub, back home. */ + function heroP(ms) { + const cycle = 12500; + const t = (ms % cycle) / cycle; + return t < 0.1 ? 0.55 : lerp(0.55, 3.19, (t - 0.1) / 0.9); + } + + /* ------------------------------------------------------------------ the playground */ + function setupPlay(ph) { + const s = blank(); + const caption = document.querySelector('[data-caption]'); + const HELLO = 'Swipe up on the home screen to open your apps.'; + const say = (text) => { + if (caption && caption.textContent !== text) caption.textContent = text; + }; + + // A tiny tween engine over paths into the state ("drawer", "finger.x", "hidden.Podcasts"). + let anims = []; + let raf = 0; + let token = 0; + let scrubbing = false; + let listTarget = null; + let snackTimer = 0; + let lastHidden = null; + const getp = (p) => p.split('.').reduce((o, k) => (o == null ? undefined : o[k]), s); + const setp = (p, v) => { + const ks = p.split('.'); + let o = s; + for (let i = 0; i < ks.length - 1; i++) o = o[ks[i]]; + o[ks[ks.length - 1]] = v; + }; + function derive() { + let more = false; + if (scrubbing) { + s.finger.x = ph.g.alphaX; + s.finger.y = ph.letterYAt(s.scrub); + listTarget = ph.scrollFor(s.scrub); + } + if (listTarget != null) { + const d = listTarget - s.list; + if (Math.abs(d) < 0.5) { + s.list = listTarget; + listTarget = null; + } else { + s.list += d * 0.32; + more = true; + } + } + return more; + } + function frame(now) { + raf = 0; + anims = anims.filter((a) => { + const k = a.dur ? clamp((now - a.start) / a.dur) : 1; + setp(a.key, lerp(a.from, a.to, a.ease(k))); + if (k >= 1) { + a.done(); + return false; + } + return true; + }); + const more = derive(); + ph.render(s); + if (anims.length || more) raf = requestAnimationFrame(frame); + } + const kick = () => { + if (!raf) raf = requestAnimationFrame(frame); + }; + const drop = (key) => { + anims = anims.filter((a) => { + if (a.key !== key) return true; + a.done(); + return false; + }); + }; + function to(patch, dur = 320, ease = inOut) { + const start = performance.now(); + const all = Object.entries(patch).map(([key, v]) => new Promise((done) => { + drop(key); + anims.push({ key, from: +getp(key) || 0, to: v, start, dur: reduced ? 0 : dur, ease, done }); + })); + kick(); + return Promise.all(all); + } + function set(patch) { + for (const [key, v] of Object.entries(patch)) { + drop(key); + setp(key, v); + } + kick(); + } + const wait = (ms) => new Promise((r) => setTimeout(r, reduced ? 0 : ms)); + const stopAll = () => { + token++; + anims.forEach((a) => a.done()); + anims = []; + scrubbing = false; + }; + + // Building blocks shared by gestures and the demo buttons. + const fingerAt = (x, y) => set({ 'finger.x': x, 'finger.y': y }); + const fingerOff = () => to({ 'finger.o': 0, 'finger.press': 0, 'finger.ring': 0 }, 220); + async function closeAll() { + s.held = null; + scrubbing = false; + await to({ drawer: 0, folder: 0, camera: 0, menu: 0, sheet: 0, scrubShow: 0, pull: 0, page: 0, snack: 0, menuPick: 0 }, 280); + } + const openDrawer = () => to({ drawer: 1 }, 300).then(() => say('Every app, A to Z. Now drag along the letters on the right.')); + const closeDrawer = () => to({ drawer: 0, menu: 0, scrubShow: 0 }, 260).then(() => { s.held = null; }); + function openFolder(id) { + s.folderId = id; + say('Blur behind folders. Tap outside the folder to close it.'); + return to({ folder: 1 }, 480, outCubic); + } + const closeFolder = () => to({ folder: 0 }, 300); + function launchCamera() { + say('Quick launch. Swipe past the first page and your camera is right there.'); + return to({ pull: 0, page: 0, camera: 1 }, 480, outCubic); + } + const closeCamera = () => to({ camera: 0 }, 320).then(() => say('Back home. Try the playground buttons, or just play.')); + function openMenu(name) { + s.held = name; + const ry = ph.rowY(name, s.list); + const below = ry + 34; + s.menuY = below + ph.g.menuH > H - 70 ? ry - 34 - ph.g.menuH : below; + say(`Tap Hide app to hide ${name}.`); + return to({ menu: 1, 'finger.ring': 0 }, 200, outCubic); + } + async function hideApp(name) { + if (!name) return; + set({ menuPick: 1 }); + await wait(120); + await to({ menu: 0 }, 180); + s.held = null; + s.menuPick = 0; + s.snackText = `${name} is hidden`; + lastHidden = name; + await to({ [`hidden.${name}`]: 1, snack: 1 }, 380); + ph.measure(); + say(`${name} is hidden from the list and from search. Tap Undo to bring it back.`); + clearTimeout(snackTimer); + snackTimer = setTimeout(() => to({ snack: 0 }, 260), 4200); + } + async function unhide(name) { + if (!name) return; + clearTimeout(snackTimer); + await to({ [`hidden.${name}`]: 0, snack: 0 }, 320); + ph.measure(); + say(`${name} is back. In the app, hidden apps also live under Settings, App drawer, Hidden apps.`); + } + async function sweep(from, target, dur) { + scrubbing = true; + s.scrub = from; + await to({ scrub: target }, dur, inOut); + scrubbing = false; + } + + // The demo buttons. + const demos = { + async drawer(alive) { + await closeAll(); + if (!alive()) return; + fingerAt(195, 790); + await to({ 'finger.o': 1 }, 160); + set({ 'finger.press': 1 }); + await to({ 'finger.y': 470, drawer: 1 }, 650); + set({ 'finger.press': 0 }); + await fingerOff(); + if (alive()) say('Every app, A to Z. Now drag along the letters on the right.'); + }, + async scrub(alive) { + if (s.drawer < 0.99 || s.folder > 0.01 || s.camera > 0.01) { + await demos.drawer(alive); + if (!alive()) return; + } + const start = L('B'); + fingerAt(ph.g.alphaX, ph.letterYAt(start)); + s.scrub = start; + await to({ 'finger.o': 1, scrubShow: 1 }, 220); + set({ 'finger.press': 1 }); + if (!alive()) return; + await sweep(start, LETTERS.length - 1, 1500); + if (!alive()) return; + await sweep(LETTERS.length - 1, L('M'), 900); + set({ 'finger.press': 0 }); + await to({ scrubShow: 0, 'finger.o': 0 }, 280); + if (alive()) say('The wave alphabet. Your thumb never has to leave the edge.'); + }, + async folder(alive) { + await closeAll(); + if (!alive()) return; + const fp = ph.g.home.media; + fingerAt(fp.x + 30, fp.y + 60); + await to({ 'finger.o': 1, 'finger.x': fp.x, 'finger.y': fp.y }, 320); + set({ 'finger.press': 1 }); + await wait(110); + set({ 'finger.press': 0 }); + if (!alive()) return; + fingerOff(); + await openFolder('media'); + }, + async hide(alive) { + await closeAll(); + if (!alive()) return; + if ((s.hidden.Podcasts || 0) > 0) { + set({ 'hidden.Podcasts': 0 }); + ph.render(s); + ph.measure(); + } + await to({ drawer: 1, list: ph.scrollFor(L('P')) }, 520); + if (!alive()) return; + const ry = ph.rowY('Podcasts', s.list); + fingerAt(150, ry); + await to({ 'finger.o': 1 }, 160); + set({ 'finger.press': 1 }); + s.held = 'Podcasts'; + await to({ 'finger.ring': 1 }, 520, linear); + if (!alive()) return; + await openMenu('Podcasts'); + set({ 'finger.press': 0 }); + const hp = { x: MENU_X + ph.g.menuHide.x, y: s.menuY + ph.g.menuHide.y }; + await to({ 'finger.x': hp.x, 'finger.y': hp.y }, 380); + if (!alive()) return; + set({ 'finger.press': 1 }); + await wait(110); + set({ 'finger.press': 0 }); + fingerOff(); + await hideApp('Podcasts'); + }, + async quick(alive) { + await closeAll(); + if (!alive()) return; + fingerAt(70, 420); + await to({ 'finger.o': 1 }, 160); + set({ 'finger.press': 1 }); + await to({ 'finger.x': 300, pull: rubber(230) }, 560); + set({ 'finger.press': 0 }); + fingerOff(); + if (!alive()) return; + await launchCamera(); + }, + async reset() { + await closeAll(); + for (const name of Object.keys(s.hidden)) s.hidden[name] = 0; + set({ align: 0, weight: DEFAULT_WEIGHT, list: 0 }); + ph.render(s); + ph.measure(); + say(HELLO); + }, + }; + for (const btn of document.querySelectorAll('[data-demo]')) { + btn.addEventListener('click', () => { + stopAll(); + const mine = token; + const run = demos[btn.dataset.demo]; + if (run) run(() => mine === token); + }); + } + + // Gestures on the phone itself. + const scr = ph.screen; + let gest = null; + let lpTimer = 0; + const pt = (e) => { + const rc = scr.getBoundingClientRect(); + return { x: (e.clientX - rc.left) / ph.scale, y: (e.clientY - rc.top) / ph.scale }; + }; + const cancelHold = () => { + clearTimeout(lpTimer); + lpTimer = 0; + if (gest && !gest.held) { + drop('finger.ring'); + s.finger.ring = 0; + if (s.menu < 0.5) s.held = null; + } + }; + function bounce(el) { + el.classList.remove('tap'); + void el.offsetWidth; + el.classList.add('tap'); + } + + scr.addEventListener('pointerdown', (e) => { + if (e.button > 0) return; + stopAll(); + const p = pt(e); + try { + scr.setPointerCapture(e.pointerId); + } catch (_) { /* not every pointer can be captured */ } + gest = { x0: p.x, y0: p.y, x: p.x, y: p.y, t0: performance.now(), mode: 'home', target: e.target, moved: false, dir: null, held: false }; + set({ 'finger.x': p.x, 'finger.y': p.y, 'finger.o': 0.9, 'finger.press': 1, 'finger.ring': 0 }); + const g = ph.g; + if (e.target.closest('.snack__undo') && s.snack > 0.5) gest.mode = 'undo'; + else if (p.y > H - 44) gest.mode = 'edge'; + else if (s.camera > 0.5) gest.mode = 'camera'; + else if (s.menu > 0.5) gest.mode = 'menu'; + else if (s.sheet > 0.5) gest.mode = 'sheet'; + else if (s.folder > 0.5) gest.mode = 'folder'; + else if (s.drawer > 0.5) { + const inAlpha = p.x > W - 56 && p.y > g.letterY[0] - 44 && p.y < g.letterY[g.letterY.length - 1] + 30; + if (inAlpha) { + gest.mode = 'scrub'; + scrubbing = true; + s.scrub = ph.letterAtY(p.y); + to({ scrubShow: 1 }, 160, outCubic); + } else { + gest.mode = 'list'; + gest.list0 = s.list; + const row = e.target.closest('.row'); + gest.row = row ? row.dataset.row : null; + if (gest.row) { + to({ 'finger.ring': 1 }, 450, linear); + lpTimer = setTimeout(() => { + if (!gest || gest.moved) return; + gest.held = true; + openMenu(gest.row); + }, 450); + } + } + } else { + const cell = e.target.closest('[data-key]'); + if (cell && cell.dataset.key === 'clock') { + to({ 'finger.ring': 1 }, 450, linear); + lpTimer = setTimeout(() => { + if (!gest || gest.moved) return; + gest.held = true; + set({ 'finger.ring': 0 }); + say('Restyle the clock: alignment and weight. Tap above the sheet to close it.'); + to({ sheet: 1 }, 360, outCubic); + }, 450); + } + } + }); + + scr.addEventListener('pointermove', (e) => { + if (!gest) return; + const p = pt(e); + gest.x = p.x; + gest.y = p.y; + const dx = p.x - gest.x0; + const dy = p.y - gest.y0; + if (!gest.moved && Math.hypot(dx, dy) > 9) { + gest.moved = true; + if (!gest.held) cancelHold(); + } + s.finger.x = p.x; + s.finger.y = p.y; + switch (gest.mode) { + case 'scrub': + s.scrub = ph.letterAtY(p.y); + break; + case 'list': + if (gest.moved && !gest.held) { + if (gest.list0 <= 1 && dy > 0) s.drawer = clamp(1 - dy / 320); + else s.list = clamp(gest.list0 - dy, 0, ph.g.maxScroll); + } + break; + case 'home': + if (gest.held) break; + if (!gest.dir && gest.moved) gest.dir = Math.abs(dy) > Math.abs(dx) ? 'v' : 'h'; + if (gest.dir === 'v') s.drawer = clamp(-dy / 280); + if (gest.dir === 'h') { + const atStart = s.page < 0.5 && dx > 0; + const atEnd = s.page > HOME.length - 1.5 && dx < 0; + s.pull = atStart || atEnd ? rubber(dx) : dx; + } + break; + default: + break; + } + kick(); + }); + + const end = (e) => { + if (!gest) return; + clearTimeout(lpTimer); + const g = gest; + gest = null; + const dx = g.x - g.x0; + const dy = g.y - g.y0; + const tap = !g.moved && performance.now() - g.t0 < 450; + if (!(g.mode === 'list' && g.held)) to({ 'finger.ring': 0 }, 120); + to({ 'finger.o': 0, 'finger.press': 0 }, 240); + if (e.type === 'pointercancel') { + if (g.mode === 'scrub') { + scrubbing = false; + to({ scrubShow: 0 }, 200); + } + to({ pull: 0, drawer: Math.round(s.drawer) }, 200); + return; + } + switch (g.mode) { + case 'undo': + unhide(lastHidden); + break; + case 'edge': + if (dy < -36) closeAll().then(() => say('Home. Swipe up from the bottom edge works from anywhere.')); + break; + case 'camera': + if ((tap && g.target.closest('.cam__close')) || dy < -60) closeCamera(); + break; + case 'menu': + if (tap && g.target.closest('.mi--hide')) hideApp(s.held); + else { + s.held = null; + to({ menu: 0 }, 180); + } + break; + case 'sheet': { + const spanEl = g.target.closest('.seg span'); + if (tap && spanEl && spanEl.dataset.v !== undefined) { + const v = +spanEl.dataset.v; + if (spanEl.parentElement.dataset.seg === 'align') to({ align: v }, 380); + else to({ weight: v }, 420); + } else if (tap && !g.target.closest('.sheet')) to({ sheet: 0 }, 300); + else if (dy > 60) to({ sheet: 0 }, 300); + break; + } + case 'folder': + if (tap && !g.target.closest('.fcard')) closeFolder(); + else if (tap) { + const app = g.target.closest('.fcard__app'); + if (app) bounce(app); + } + break; + case 'scrub': + scrubbing = false; + to({ scrubShow: 0 }, 280); + say(`Landed on ${LETTERS[clamp(Math.round(s.scrub), 0, LETTERS.length - 1)]}. That's the wave alphabet.`); + break; + case 'list': + if (g.held) break; // the menu stays open + if (s.drawer < 1) { + if (s.drawer < 0.75) closeDrawer().then(() => say('Closed. Swipe up to open it again.')); + else to({ drawer: 1 }, 200); + } else if (tap && g.row) { + const row = ph.r.rows.get(g.row); + row.classList.add('flash'); + setTimeout(() => row.classList.remove('flash'), 220); + say(`Hold ${g.row} to see what else you can do with it.`); + } + break; + case 'home': + if (g.held) break; + if (g.dir === 'v') { + if (s.drawer > 0.3) openDrawer(); + else to({ drawer: 0 }, 220); + } else if (g.dir === 'h') { + if (s.page < 0.5 && dx > 70) launchCamera(); + else if (s.page < 0.5 && dx < -70) to({ page: 1, pull: 0 }, 380).then(() => say('Page two. Swipe back, or past the last page.')); + else if (s.page > 0.5 && dx > 70) to({ page: 0, pull: 0 }, 380).then(() => say(HELLO)); + else to({ pull: 0 }, 260, outCubic); + } else if (tap) { + const cell = g.target.closest('[data-key]'); + if (cell && cell.dataset.folder) openFolder(cell.dataset.folder); + else if (cell && cell.dataset.app === 'Camera') launchCamera(); + else if (cell && cell.classList.contains('cell')) { + bounce(cell); + say('Swipe up from anywhere on the home screen to see every app.'); + } + } + break; + default: + break; + } + kick(); + }; + scr.addEventListener('pointerup', end); + scr.addEventListener('pointercancel', end); + scr.addEventListener('contextmenu', (e) => e.preventDefault()); + + ph.render(s); + return { render: () => ph.render(s) }; + } + + /* ------------------------------------------------------------------ page */ + function setupReveal() { + const els = document.querySelectorAll('.rv'); + if (reduced || !('IntersectionObserver' in window)) { + els.forEach((el) => el.classList.add('in')); + return; + } + const io = new IntersectionObserver((entries) => { + for (const en of entries) { + if (en.isIntersecting) { + en.target.classList.add('in'); + io.unobserve(en.target); + } + } + }, { rootMargin: '0px 0px -6% 0px', threshold: 0.1 }); + els.forEach((el) => io.observe(el)); + } + + function setupMarquees() { + const tracks = [...document.querySelectorAll('[data-marquee]')].map((el) => { + const base = el.innerHTML; + let guard = 0; + while (el.scrollWidth < window.innerWidth * 1.6 && guard++ < 8) el.innerHTML += base; + el.innerHTML += el.innerHTML; // two identical halves, so the loop is seamless + return { el, speed: +el.dataset.marquee, x: 0, half: el.scrollWidth / 2 }; + }); + window.addEventListener('resize', () => tracks.forEach((t) => { t.half = t.el.scrollWidth / 2; })); + return (dt, boost) => { + for (const t of tracks) { + t.x -= (t.speed / 1000) * dt * (1 + boost); + if (t.x <= -t.half) t.x += t.half; + if (t.x > 0) t.x -= t.half; + t.el.style.transform = `translate3d(${t.x.toFixed(1)}px,0,0)`; + } + }; + } + + function boot() { + document.querySelectorAll('[data-version]').forEach((el) => { el.textContent = VERSION; }); + + const phones = {}; + for (const host of document.querySelectorAll('[data-phone]')) phones[host.dataset.phone] = new Phone(host); + + // Live time and date in every phone. + const cycle = new Intl.DateTimeFormat(undefined, { hour: 'numeric' }).resolvedOptions().hourCycle || 'h23'; + const h24 = !/h1[12]/.test(cycle); + function tick() { + const d = new Date(); + const hh = d.getHours(); + const mm = String(d.getMinutes()).padStart(2, '0'); + const now = h24 ? `${String(hh).padStart(2, '0')}:${mm}` : `${((hh + 11) % 12) + 1}:${mm}`; + const date = d.toLocaleDateString('en-US', { weekday: 'long', month: 'long', day: 'numeric' }); + Object.values(phones).forEach((p) => p.tick(now, date)); + } + tick(); + setInterval(tick, 10000); + + const story = phones.story ? setupStory(phones.story) : null; + const play = phones.play ? setupPlay(phones.play) : null; + if (phones.hero) phones.hero.render(storyState(phones.hero, 0.55)); + + // Picture widgets turn to the next picture now and then. + if (!reduced) setInterval(() => Object.values(phones).forEach((p) => p.nextPicture()), 3800); + + // Fonts change nothing that is measured, but measure again once they are in, to be sure. + if (document.fonts && document.fonts.ready) { + document.fonts.ready.then(() => { + Object.values(phones).forEach((p) => p.measure()); + if (story) story(); + if (play) play.render(); + }); + } + + // Is the hero phone on screen? + let heroVisible = true; + const heroHost = document.querySelector('[data-phone="hero"]'); + if (heroHost && 'IntersectionObserver' in window) { + new IntersectionObserver((en) => { heroVisible = en[0].isIntersecting; }).observe(heroHost); + } + + const nav = document.querySelector('.nav'); + const bar = document.querySelector('.nav__progress i'); + const tilt = document.querySelector('[data-tilt]'); + const hero = document.querySelector('.hero'); + const parallax = [...document.querySelectorAll('[data-parallax]')]; + let mouse = { x: 0, y: 0 }; + if (hero && window.matchMedia('(hover: hover)').matches) { + hero.addEventListener('pointermove', (e) => { + const rc = hero.getBoundingClientRect(); + mouse = { x: (e.clientX - rc.left) / rc.width * 2 - 1, y: (e.clientY - rc.top) / rc.height * 2 - 1 }; + }); + hero.addEventListener('pointerleave', () => { mouse = { x: 0, y: 0 }; }); + } + + function onScroll() { + const y = window.scrollY; + const vh = window.innerHeight; + nav.classList.toggle('is-scrolled', y > 24); + const max = document.documentElement.scrollHeight - vh; + bar.style.transform = `scaleX(${max > 0 ? (y / max).toFixed(4) : 0})`; + if (!reduced) { + for (const el of parallax) { + const rc = el.getBoundingClientRect(); + el.style.transform = `translate3d(0, ${((rc.top + rc.height / 2 - vh / 2) * +el.dataset.parallax).toFixed(1)}px, 0)`; + } + } + if (story) story(); + } + + const marquee = setupMarquees(); + let lastT = performance.now(); + let lastY = window.scrollY; + let boost = 0; + let tiltNow = { x: 0, y: 0 }; + function loop(now) { + const dt = Math.min(64, now - lastT); + lastT = now; + const y = window.scrollY; + const v = Math.abs(y - lastY) / Math.max(dt, 1); + lastY = y; + boost = lerp(boost, Math.min(7, v * 3), 0.12); + if (!reduced) { + marquee(dt, boost); + if (tilt) { + const hp = clamp(y / (window.innerHeight * 0.9)); + tiltNow.x = lerp(tiltNow.x, mouse.x, 0.08); + tiltNow.y = lerp(tiltNow.y, mouse.y, 0.08); + tilt.style.setProperty('--ry', `${(lerp(-16, 0, hp) + tiltNow.x * 7).toFixed(2)}deg`); + tilt.style.setProperty('--rx', `${(lerp(8, 0, hp) - tiltNow.y * 6).toFixed(2)}deg`); + tilt.style.setProperty('--rz', `${lerp(3, 0, hp).toFixed(2)}deg`); + } + if (phones.hero && heroVisible) phones.hero.render(storyState(phones.hero, heroP(now))); + } + requestAnimationFrame(loop); + } + + let ticking = false; + window.addEventListener('scroll', () => { + if (ticking) return; + ticking = true; + requestAnimationFrame(() => { + ticking = false; + onScroll(); + }); + }, { passive: true }); + window.addEventListener('resize', onScroll); + motion.addEventListener?.('change', (e) => { + reduced = e.matches; + onScroll(); + }); + + if (reduced && tilt) { + tilt.style.setProperty('--ry', '0deg'); + tilt.style.setProperty('--rx', '0deg'); + tilt.style.setProperty('--rz', '0deg'); + } + setupReveal(); + onScroll(); + requestAnimationFrame(loop); + } + + if (document.readyState === 'loading') document.addEventListener('DOMContentLoaded', boot); + else boot(); +})(); diff --git a/WEBSITE/styles.css b/WEBSITE/styles.css new file mode 100644 index 0000000000..6cf527731c --- /dev/null +++ b/WEBSITE/styles.css @@ -0,0 +1,758 @@ +/* Flexera Launcher landing page. + Brutal layout (hard 2px lines, solid slabs, offset shadows) in the app icon's neon colours. + Fonts are served from this folder: nothing is loaded from anyone else. */ + +@font-face { font-family: "Unbounded"; src: url("fonts/unbounded.woff2") format("woff2"); font-weight: 300 900; font-display: swap; } +@font-face { font-family: "Space Grotesk"; src: url("fonts/space-grotesk.woff2") format("woff2"); font-weight: 300 700; font-display: swap; } +@font-face { font-family: "JetBrains Mono"; src: url("fonts/jetbrains-mono.woff2") format("woff2"); font-weight: 400 800; font-display: swap; } +@font-face { font-family: "Outfit"; src: url("fonts/outfit.woff2") format("woff2"); font-weight: 100 900; font-display: swap; } + +:root { + --bg: #07070d; + --bg-2: #0e0d1d; + --fg: #f5f4ff; + --dim: #b4b2d2; + --ink: #07070d; + + /* From the icon: ice and cyan at the top of the F, electric blue, deep indigo, violet, hot pink. */ + --ice: #76fafc; + --cyan: #1ddbfd; + --blue: #417df4; + --indigo: #0d0b72; + --violet: #653df0; + --purple: #9c0ff6; + --pink: #fc59fb; + --grad: linear-gradient(95deg, #76fafc 0%, #1ddbfd 16%, #417df4 40%, #653df0 64%, #c866fa 82%, #fc59fb 100%); + + --display: "Unbounded", "Arial Black", system-ui, sans-serif; + --body: "Space Grotesk", system-ui, sans-serif; + --mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", monospace; + --ui: "Outfit", system-ui, sans-serif; + + --pad: clamp(16px, 4vw, 56px); + --b: 2px; + --max: 1520px; + color-scheme: dark; +} + +*, *::before, *::after { box-sizing: border-box; } +html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; } +body { + margin: 0; + background: var(--bg); + color: var(--fg); + font: 400 17px/1.55 var(--body); + -webkit-font-smoothing: antialiased; + overflow-x: clip; +} +/* Film grain over everything, very faint. */ +body::after { + content: ""; + position: fixed; + inset: 0; + pointer-events: none; + z-index: 90; + opacity: .055; + background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); +} +img, svg { display: block; } +a { color: inherit; } +::selection { background: var(--pink); color: var(--ink); } +:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; } + +.sprite { position: absolute; width: 0; height: 0; overflow: hidden; } +.gly { width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex: none; } +.gly .fill, .fill { fill: currentColor; stroke: none; } + +.skip { + position: absolute; left: 12px; top: -60px; z-index: 200; + background: var(--cyan); color: var(--ink); padding: 10px 14px; font: 700 14px var(--mono); + border: var(--b) solid var(--ink); text-decoration: none; +} +.skip:focus { top: 12px; } + +/* ---------- type helpers ---------- */ +.grad { + background: var(--grad); + -webkit-background-clip: text; + background-clip: text; + color: transparent; +} +.tag { + margin: 0; + font: 700 13px/1 var(--mono); + letter-spacing: .14em; + text-transform: uppercase; + color: var(--cyan); +} +.tag--ink { color: var(--ink); } +.h2 { + margin: .35em 0 0; + font: 900 clamp(40px, 7.2vw, 118px)/.9 var(--display); + letter-spacing: -.04em; + text-transform: uppercase; +} +/* Lines that slide up out of a mask when their heading scrolls into view. */ +.line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; } +.line__in { display: block; transform: translateY(108%); transition: transform 1s cubic-bezier(.2, .8, .1, 1); } +.line + .line .line__in { transition-delay: .09s; } +.in .line__in { transform: none; } + +.rv:not(.hero__title):not(.h2):not(.get__title) { opacity: 0; transform: translateY(26px); transition: opacity .8s ease, transform .9s cubic-bezier(.2, .8, .1, 1); } +.rv.in:not(.hero__title):not(.h2):not(.get__title) { opacity: 1; transform: none; } + +.meta { margin: 18px 0 0; font: 500 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); } +.meta i { font-style: normal; color: var(--pink); margin: 0 .35em; } +.meta--ink { color: var(--ink); } +.meta--ink i { color: var(--ink); } + +/* ---------- buttons ---------- */ +.btn { + --c: var(--cyan); + --sh: var(--fg); + display: inline-flex; + align-items: center; + gap: .7em; + padding: 1.05em 1.45em; + font: 800 15px/1 var(--display); + letter-spacing: .01em; + text-transform: uppercase; + text-decoration: none; + color: var(--ink); + background: var(--c); + border: var(--b) solid var(--fg); + box-shadow: 6px 6px 0 var(--sh); + transition: transform .14s ease, box-shadow .14s ease, background .2s; + cursor: pointer; +} +.btn .gly { width: 1.25em; height: 1.25em; stroke-width: 2.6; } +.btn:hover { transform: translate(-3px, -3px); box-shadow: 9px 9px 0 var(--sh); } +.btn:active { transform: translate(4px, 4px); box-shadow: 2px 2px 0 var(--sh); } +.btn--pink { --c: var(--pink); } +.btn--cyan { --c: var(--cyan); } +.btn--ghost { background: transparent; color: var(--fg); --sh: var(--violet); } +.btn--sm { padding: .8em 1.05em; font-size: 12px; box-shadow: 4px 4px 0 var(--sh); } +.btn--sm:hover { box-shadow: 6px 6px 0 var(--sh); } +.btn--big { font-size: clamp(14px, 1.1vw, 17px); } +.btn--huge { font-size: clamp(18px, 2.2vw, 30px); padding: 1em 1.3em; border-color: var(--ink); --sh: var(--ink); } + +.textlink { + display: inline-flex; align-items: center; gap: .5em; + font: 700 14px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; + text-decoration: none; border-bottom: var(--b) solid currentColor; padding-bottom: 4px; +} +.textlink:hover { color: var(--pink); } + +/* ---------- nav ---------- */ +.nav { + position: fixed; inset: 0 0 auto 0; z-index: 80; + display: flex; align-items: center; gap: 28px; + padding: 14px var(--pad); + transition: background .3s, border-color .3s; + border-bottom: var(--b) solid transparent; +} +.nav.is-scrolled { background: rgba(7, 7, 13, .86); border-bottom-color: var(--fg); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); } +.nav__brand { display: flex; align-items: center; gap: 12px; text-decoration: none; font: 900 18px/1 var(--display); text-transform: uppercase; letter-spacing: -.02em; } +.nav__brand img { width: 40px; height: 40px; } +.nav__links { display: flex; gap: 26px; margin-left: auto; } +.nav__links a { font: 600 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; padding: 6px 0; border-bottom: var(--b) solid transparent; } +.nav__links a:hover { border-bottom-color: var(--cyan); color: var(--cyan); } +.nav__progress { position: absolute; left: 0; right: 0; bottom: -2px; height: 3px; } +.nav__progress i { display: block; height: 100%; background: var(--grad); transform-origin: 0 50%; transform: scaleX(0); } + +/* ---------- hero ---------- */ +.hero { + position: relative; + min-height: 100vh; + min-height: 100svh; + padding: 120px var(--pad) 70px; + overflow: hidden; + border-bottom: var(--b) solid var(--fg); + background: + radial-gradient(60% 50% at 85% 30%, rgba(101, 61, 240, .35), transparent 70%), + radial-gradient(40% 40% at 10% 90%, rgba(29, 219, 253, .14), transparent 70%), + var(--bg); +} +.hero::before { /* the layout grid, drawn */ + content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5; + background-image: + linear-gradient(to right, rgba(245, 244, 255, .06) 1px, transparent 1px), + linear-gradient(to bottom, rgba(245, 244, 255, .06) 1px, transparent 1px); + background-size: 96px 96px; + mask-image: linear-gradient(to bottom, #000 40%, transparent); + -webkit-mask-image: linear-gradient(to bottom, #000 40%, transparent); +} +.hero__ghost { + position: absolute; left: -1vw; bottom: -5.5vw; + font: 900 26vw/.8 var(--display); letter-spacing: -.06em; text-transform: uppercase; + color: transparent; -webkit-text-stroke: 2px rgba(245, 244, 255, .08); + white-space: nowrap; pointer-events: none; user-select: none; +} +.hero__grid { + position: relative; + display: grid; + grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); + gap: clamp(24px, 4vw, 80px); + align-items: center; + max-width: var(--max); + margin: 0 auto; +} +.kicker { + display: inline-flex; align-items: center; gap: 10px; margin: 0; + padding: 9px 14px; border: var(--b) solid var(--fg); + font: 700 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .12em; +} +.kicker i { font-style: normal; color: var(--pink); } +.kicker__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(29, 219, 253, .2); animation: blink 1.6s steps(2) infinite; } +@keyframes blink { 50% { opacity: .2; } } +.hero__title { + margin: 26px 0 28px; + font: 900 clamp(50px, 8.4vw, 158px)/.86 var(--display); + letter-spacing: -.05em; + text-transform: uppercase; +} +.lead { margin: 0; max-width: 33em; font-size: clamp(18px, 1.45vw, 22px); line-height: 1.5; color: #dddbf3; } +.cta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 36px; } + +.hero__stage { position: relative; display: grid; place-items: center; perspective: 1600px; padding: 20px 0; } +.hero__slab { + position: absolute; inset: 9% 3% 12% 14%; + background: var(--violet); + border: var(--b) solid var(--fg); + box-shadow: 14px 14px 0 var(--pink); + transform: rotate(-5deg); +} +.hero__tilt { + position: relative; + transform: rotateY(var(--ry, -16deg)) rotateX(var(--rx, 8deg)) rotateZ(var(--rz, 3deg)); + transform-style: preserve-3d; + will-change: transform; +} +.hero .phone-host { width: min(360px, 74vw); } +.sticker { + position: absolute; z-index: 3; + padding: 11px 14px; + font: 800 14px/1.05 var(--display); text-transform: uppercase; letter-spacing: -.01em; + color: var(--ink); background: var(--cyan); + border: var(--b) solid var(--ink); box-shadow: 4px 4px 0 var(--ink); + animation: bob 4s ease-in-out infinite; +} +.sticker--a { top: 12%; left: -2%; transform: rotate(-9deg); } +.sticker--b { top: 54%; right: -3%; background: var(--pink); transform: rotate(7deg); animation-delay: -2s; } +@keyframes bob { 50% { translate: 0 -10px; } } +.spinner { position: absolute; left: 0; bottom: 4%; width: 128px; height: 128px; z-index: 3; display: grid; place-items: center; } +.spinner__ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 16s linear infinite; } +.spinner__ring text { font: 700 10.5px var(--mono); letter-spacing: .18em; text-transform: uppercase; fill: var(--fg); } +.spinner__arrow { width: 38px; height: 38px; color: var(--ink); background: var(--ice); border-radius: 50%; padding: 8px; stroke-width: 2.8; border: var(--b) solid var(--ink); } +@keyframes spin { to { rotate: 360deg; } } + +/* ---------- marquees ---------- */ +.bands { position: relative; overflow: hidden; padding-bottom: 30px; } /* the tilted band stays inside */ +.marquee { position: relative; overflow: hidden; border-bottom: var(--b) solid var(--fg); z-index: 2; } +.marquee--cyan { background: var(--cyan); color: var(--ink); } +.marquee--pink { background: var(--pink); color: var(--ink); transform: rotate(-1.6deg) scale(1.03); margin-top: -4px; border-top: var(--b) solid var(--fg); } +.marquee__track { display: flex; width: max-content; white-space: nowrap; will-change: transform; } +.marquee__track span { + display: inline-flex; align-items: center; gap: .55em; padding: .32em .55em .32em 0; + font: 900 clamp(26px, 3.8vw, 58px)/1 var(--display); text-transform: uppercase; letter-spacing: -.03em; +} +.marquee__track span::after { + content: ""; width: .62em; height: .62em; flex: none; + background: currentColor; + clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); +} + +/* ---------- sections ---------- */ +section { position: relative; } +.section-head { max-width: var(--max); margin: 0 auto; padding: clamp(80px, 11vw, 150px) var(--pad) clamp(30px, 4vw, 60px); } + +/* ---------- story ---------- */ +.story { border-bottom: var(--b) solid var(--fg); } +.story__body { + display: grid; + grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); + max-width: var(--max); + margin: 0 auto; + padding: 0 var(--pad); +} +.story__stage { + grid-column: 2; grid-row: 1; + position: sticky; top: 0; + height: 100vh; height: 100svh; + display: grid; place-items: center; + align-self: start; +} +.story__num { + position: absolute; left: 50%; top: 50%; translate: -50% -50%; + font: 900 clamp(180px, 30vw, 480px)/1 var(--display); letter-spacing: -.07em; + color: transparent; -webkit-text-stroke: 2px rgba(245, 244, 255, .1); + pointer-events: none; user-select: none; +} +.story .phone-host { height: min(84vh, 880px); height: min(84svh, 880px); position: relative; z-index: 1; } +.story__rail { position: absolute; right: 0; top: 50%; translate: 0 -50%; display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; } +.story__rail li { width: 12px; height: 34px; border: var(--b) solid var(--fg); transition: background .3s, height .3s; } +.story__rail li.done { background: var(--fg); } +.story__rail li.on { background: var(--pink); height: 54px; } +.story__steps { grid-column: 1; grid-row: 1; padding-bottom: 50vh; padding-bottom: 50svh; } +.step { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding-right: 4vw; } +.step__card { opacity: .16; transition: opacity .5s ease; } +.step.is-active .step__card { opacity: 1; } +.step__no { margin: 0; font: 700 14px/1 var(--mono); letter-spacing: .1em; color: var(--pink); } +.step__title { margin: 18px 0 22px; font: 900 clamp(34px, 4.3vw, 74px)/.94 var(--display); letter-spacing: -.04em; text-transform: uppercase; } +.step__text { margin: 0; max-width: 30em; font-size: clamp(18px, 1.35vw, 21px); color: #dcdaf3; } +.step__gesture { display: inline-flex; gap: 12px; margin: 30px 0 0; padding: 10px 14px; border: var(--b) solid var(--fg); font: 700 12.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; } +.step__gesture span { color: var(--cyan); } + +/* ---------- details ---------- */ +.details { border-bottom: var(--b) solid var(--fg); } +.cards { + display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); + max-width: var(--max); margin: 0 auto; padding: 0 var(--pad); + gap: 0; +} +.card { + position: relative; + min-height: 380px; + padding: 28px 28px 32px; + border: var(--b) solid var(--fg); + margin: 0 -2px -2px 0; /* collapse the borders into a single grid */ + display: flex; flex-direction: column; + transition: transform .2s ease, box-shadow .2s ease, z-index 0s .2s; +} +.card:hover { transform: translate(-6px, -6px); box-shadow: 12px 12px 0 var(--fg); z-index: 2; transition: transform .2s ease, box-shadow .2s ease; } +.card h3 { margin: auto 0 12px; font: 900 clamp(24px, 2.2vw, 34px)/1 var(--display); letter-spacing: -.03em; text-transform: uppercase; } +.card p { margin: 0; font-size: 17px; line-height: 1.5; } +.card__no { position: absolute; top: 22px; right: 24px; font: 800 14px var(--mono); } +.card--ink { background: var(--bg-2); } +.card--ink p { color: var(--dim); } +.card--cyan { background: var(--cyan); color: var(--ink); } +.card--violet { background: var(--violet); } +.card--pink { background: var(--pink); color: var(--ink); } +.card__art { height: 150px; margin-bottom: 28px; position: relative; } + +/* card art: alphabet that hops from edge to edge */ +.art-flip__phone { position: absolute; left: 0; top: 0; width: 120px; height: 150px; border: var(--b) solid currentColor; border-radius: 18px; } +.art-flip__phone b { position: absolute; top: 12px; right: 8px; width: 12px; font: 700 10px/1.25 var(--ui); text-align: center; word-break: break-all; color: var(--cyan); animation: flip 4s cubic-bezier(.7, 0, .3, 1) infinite; } +@keyframes flip { 0%, 40% { right: 8px; } 50%, 90% { right: 96px; } 100% { right: 8px; } } +/* compact and comfy rows */ +.art-rows { display: flex; gap: 22px; } +.art-rows__col { display: flex; flex-direction: column; gap: 9px; width: 120px; padding: 12px; border: var(--b) solid var(--ink); border-radius: 14px; } +.art-rows__col b { display: block; height: 12px; background: var(--ink); border-radius: 3px; } +.art-rows__col--comfy { gap: 16px; } +.art-rows__col--comfy b { height: 20px; } +/* update bar */ +.art-update { display: flex; flex-direction: column; justify-content: center; gap: 16px; } +.art-update__v { font: 900 46px/1 var(--display); letter-spacing: -.04em; } +.art-update__bar { display: block; height: 22px; border: var(--b) solid var(--fg); } +.art-update__bar b { display: block; height: 100%; background: var(--fg); animation: fillbar 3.2s cubic-bezier(.6, 0, .2, 1) infinite; } +@keyframes fillbar { 0% { width: 0; } 70%, 100% { width: 100%; } } +/* move in */ +.art-move { display: flex; align-items: center; gap: 18px; } +.art-move__box { display: grid; place-items: center; width: 92px; height: 92px; border: var(--b) solid var(--ink); background: var(--fg); color: var(--ink); font: 900 26px var(--display); font-style: normal; box-shadow: 5px 5px 0 var(--ink); } +.art-move__box--f { background: var(--ink); } +.art-move__box--f img { width: 60px; height: 60px; } +.art-move__arrow { width: 44px; height: 44px; stroke-width: 3; animation: nudge 1.2s ease-in-out infinite; } +@keyframes nudge { 50% { translate: 8px 0; } } +/* shapes that morph */ +.art-shapes { display: flex; align-items: center; gap: 18px; } +.art-shapes i { width: 72px; height: 72px; background: var(--grad); border: var(--b) solid var(--fg); animation: morph 4.5s ease-in-out infinite; } +.art-shapes i:nth-child(2) { animation-delay: -1.5s; } +.art-shapes i:nth-child(3) { animation-delay: -3s; } +@keyframes morph { 0%, 100% { border-radius: 50%; } 33% { border-radius: 30%; } 66% { border-radius: 8px; } } +/* double tap */ +.art-tap { display: grid; place-items: center; } +.art-tap i { position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--ink); animation: tap 1.8s ease-out infinite; } +.art-tap i:nth-child(2) { animation-delay: .22s; } +@keyframes tap { 0% { scale: .3; opacity: 1; } 60%, 100% { scale: 2.3; opacity: 0; } } + +.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); max-width: var(--max); margin: 0 auto; padding: clamp(60px, 8vw, 110px) var(--pad); } +.stat { padding: 0 20px; border-left: var(--b) solid var(--fg); } +.stat b { display: block; font: 900 clamp(70px, 10vw, 170px)/.9 var(--display); letter-spacing: -.06em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; } +.stat span { display: block; margin-top: 14px; font: 700 13px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .1em; } + +/* ---------- privacy ---------- */ +.privacy { + background: var(--cyan); + color: var(--ink); + padding: clamp(80px, 11vw, 150px) var(--pad); + border-bottom: var(--b) solid var(--fg); +} +.privacy > * { max-width: var(--max); margin-left: auto; margin-right: auto; } +.privacy__title { margin-top: 22px; margin-bottom: clamp(40px, 6vw, 80px); font: 900 clamp(40px, 6.8vw, 112px)/.92 var(--display); letter-spacing: -.045em; text-transform: uppercase; } +.privacy__hl { display: inline-block; padding: 0 .12em; background: var(--ink); color: var(--cyan); transform: rotate(-2deg); } +.privacy__list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; } +.pitem { position: relative; padding: 34px 34px 40px 0; border-top: 3px solid var(--ink); } +.pitem + .pitem { padding-left: 34px; border-left: 3px solid var(--ink); } +.pitem__no { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--ink); color: var(--cyan); font: 900 24px var(--display); } +.pitem h3 { margin: 22px 0 10px; font: 900 clamp(24px, 2.4vw, 36px)/1 var(--display); text-transform: uppercase; letter-spacing: -.03em; } +.pitem p { margin: 0; max-width: 28em; font-size: clamp(17px, 1.35vw, 20px); } +.privacy__end { margin-top: clamp(40px, 6vw, 80px); padding-top: 34px; border-top: 3px solid var(--ink); font: 900 clamp(26px, 3.4vw, 54px)/1.02 var(--display); letter-spacing: -.035em; text-transform: uppercase; } +.privacy__note { margin-top: 26px; font: 600 14px/1.5 var(--mono); } + +/* ---------- playground ---------- */ +.play { + border-bottom: var(--b) solid var(--fg); + background: + linear-gradient(to right, rgba(245, 244, 255, .05) 1px, transparent 1px) 0 0 / 48px 48px, + linear-gradient(to bottom, rgba(245, 244, 255, .05) 1px, transparent 1px) 0 0 / 48px 48px, + var(--bg); +} +.play__grid { + display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); + gap: clamp(30px, 5vw, 90px); + align-items: center; + max-width: var(--max); margin: 0 auto; + padding: 0 var(--pad) clamp(80px, 10vw, 140px); +} +.play__stage { display: grid; place-items: center; position: relative; } +.play__stage::before { + content: ""; position: absolute; width: 70%; aspect-ratio: 1; border-radius: 50%; + background: radial-gradient(closest-side, rgba(101, 61, 240, .55), rgba(252, 89, 251, .18) 60%, transparent); + filter: blur(30px); +} +.play .phone-host { height: min(82vh, 860px); height: min(82svh, 860px); position: relative; touch-action: none; } +.play__caption { + margin: 0 0 28px; min-height: 3.2em; + font: 800 clamp(22px, 2.2vw, 34px)/1.15 var(--display); letter-spacing: -.03em; text-transform: uppercase; +} +.chips { display: flex; flex-wrap: wrap; gap: 12px; } +.chip { + display: inline-flex; align-items: center; gap: 9px; + padding: 12px 16px; + font: 700 13px/1 var(--mono); text-transform: uppercase; letter-spacing: .06em; + color: var(--fg); background: transparent; + border: var(--b) solid var(--fg); box-shadow: 4px 4px 0 var(--violet); + cursor: pointer; transition: transform .12s, box-shadow .12s, background .2s, color .2s; +} +.chip .gly { width: 18px; height: 18px; } +.chip:hover { background: var(--fg); color: var(--ink); } +.chip:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--violet); } +.chip.is-on { background: var(--cyan); color: var(--ink); } +.chip--ghost { box-shadow: none; border-style: dashed; } +.howto { margin: 36px 0 0; padding: 0; list-style: none; border-top: var(--b) solid var(--fg); } +.howto li { padding: 13px 0; border-bottom: 1px solid rgba(245, 244, 255, .2); font-size: 17px; color: var(--dim); } +.howto b { color: var(--fg); font-weight: 700; } + +/* ---------- get it ---------- */ +.get { background: var(--violet); padding: clamp(80px, 11vw, 150px) var(--pad); border-bottom: var(--b) solid var(--fg); } +.get > * { max-width: var(--max); margin-left: auto; margin-right: auto; } +.get .tag { color: var(--fg); } +.get__title { margin-top: 10px; margin-bottom: clamp(30px, 5vw, 70px); font: 900 clamp(44px, 14.6vw, 260px)/.82 var(--display); letter-spacing: -.07em; text-transform: uppercase; color: var(--fg); text-shadow: .045em .045em 0 var(--ink); } +.get__grid { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: clamp(30px, 5vw, 90px); align-items: start; } +.qr { + margin: 0; padding: 22px; width: clamp(220px, 22vw, 300px); + background: var(--fg); color: var(--ink); + border: var(--b) solid var(--ink); box-shadow: 12px 12px 0 var(--ink); + transform: rotate(-3deg); +} +.qr__code { width: 100%; height: auto; } +.qr__code path { fill: none; stroke-width: 1; shape-rendering: crispEdges; } +.qr figcaption { margin-top: 14px; font: 700 12.5px/1.3 var(--mono); text-transform: uppercase; letter-spacing: .08em; text-align: center; } +.get__main { display: flex; flex-direction: column; align-items: flex-start; } +.get .btn--huge { --c: var(--pink); } +.steps { counter-reset: s; margin: 40px 0 34px; padding: 0; list-style: none; max-width: 40em; } +.steps li { counter-increment: s; position: relative; padding: 16px 0 16px 64px; border-top: var(--b) solid var(--ink); font-size: clamp(17px, 1.3vw, 20px); } +.steps li:last-child { border-bottom: var(--b) solid var(--ink); } +.steps li::before { content: "0" counter(s); position: absolute; left: 0; top: 16px; font: 900 22px/1 var(--display); color: var(--ice); } +.get .textlink { color: var(--fg); } +.faq { margin-top: clamp(60px, 8vw, 110px); border-top: 3px solid var(--ink); } +.faq details { border-bottom: 3px solid var(--ink); } +.faq summary { + list-style: none; cursor: pointer; position: relative; + padding: 24px 60px 24px 0; + font: 800 clamp(18px, 1.8vw, 28px)/1.15 var(--display); letter-spacing: -.02em; text-transform: uppercase; +} +.faq summary::-webkit-details-marker { display: none; } +.faq summary::after { + content: ""; position: absolute; right: 6px; top: 50%; width: 26px; height: 26px; margin-top: -13px; + background: linear-gradient(var(--fg), var(--fg)) center / 100% 4px no-repeat, linear-gradient(var(--fg), var(--fg)) center / 4px 100% no-repeat; + transition: rotate .25s; +} +.faq details[open] summary::after { rotate: 45deg; } +.faq details p { margin: 0 0 26px; max-width: 46em; font-size: clamp(17px, 1.3vw, 19px); } + +/* ---------- footer ---------- */ +.foot { padding: 40px var(--pad) 34px; overflow: hidden; } +.foot__word { + font: 900 16.6vw/.8 var(--display); letter-spacing: -.07em; text-transform: uppercase; + background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; + margin: 0 0 30px -.03em; white-space: nowrap; +} +.foot__row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 40px; padding-top: 22px; border-top: var(--b) solid var(--fg); font: 500 13px/1.4 var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--dim); } +.foot__row p { margin: 0; } +.foot__row .textlink { margin-left: auto; color: var(--fg); } + +/* ===================================================================== + The phone. Drawn at 390 x 844 (a phone's CSS pixels) and scaled to fit + its host, so every measurement inside stays the same at any size. + ===================================================================== */ +.phone-host { position: relative; aspect-ratio: 414 / 868; } +.phone { + position: absolute; left: 0; top: 0; + width: 414px; height: 868px; + padding: 12px; + border-radius: 60px; + background: linear-gradient(150deg, #34324d, #121122 45%, #08070f); + box-shadow: + inset 0 0 0 2px #4a4767, + inset 0 0 0 5px #0a0914, + 0 50px 90px -30px rgba(101, 61, 240, .7), + 0 0 0 2px #000; + transform-origin: 0 0; + transform: scale(var(--s, .5)); + user-select: none; -webkit-user-select: none; +} +.phone::before, .phone::after { /* side buttons */ + content: ""; position: absolute; right: -4px; width: 4px; border-radius: 0 3px 3px 0; background: #2b2940; +} +.phone::before { top: 190px; height: 70px; } +.phone::after { top: 290px; height: 110px; } +.screen { + position: relative; + width: 390px; height: 844px; + border-radius: 48px; + overflow: hidden; + background: #05061a; + font-family: var(--ui); + color: #fff; + isolation: isolate; + contain: strict; +} +.screen * { box-sizing: border-box; } +.screen .ic svg, .screen .gl { fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; } + +/* wallpaper and home screen sit in one layer, so the folder blur takes both */ +.world { position: absolute; inset: 0; transform-origin: 50% 50%; } +.wall { + position: absolute; inset: -30px; + background: + radial-gradient(70% 38% at 8% 12%, rgba(29, 219, 253, .62), transparent 70%), + radial-gradient(60% 34% at 95% 92%, rgba(252, 89, 251, .55), transparent 70%), + radial-gradient(55% 30% at 78% 40%, rgba(101, 61, 240, .7), transparent 72%), + linear-gradient(168deg, #2a1fb8 0%, #120d82 30%, #0a0954 58%, #050525 100%); +} +.wall::before, .wall::after { /* the icon's sweeping light lines */ + content: ""; position: absolute; border-radius: 50%; + border-top: 3px solid rgba(118, 250, 252, .55); + filter: blur(1.5px); +} +.wall::before { left: -40%; top: 18%; width: 150%; height: 70%; transform: rotate(-22deg); } +.wall::after { left: -10%; top: 52%; width: 150%; height: 60%; transform: rotate(-24deg); border-top-color: rgba(252, 89, 251, .5); } + +.sbar { position: absolute; left: 0; right: 0; top: 0; height: 40px; padding: 14px 28px 0; display: flex; justify-content: space-between; font: 600 14px/1 var(--ui); z-index: 30; pointer-events: none; } +.sbar__icons { display: flex; align-items: center; gap: 6px; } +.sbar__sig { display: flex; align-items: flex-end; gap: 2px; height: 11px; } +.sbar__sig i { width: 3px; background: #fff; border-radius: 1px; } +.sbar__sig i:nth-child(1) { height: 4px; } .sbar__sig i:nth-child(2) { height: 6px; } .sbar__sig i:nth-child(3) { height: 8px; } .sbar__sig i:nth-child(4) { height: 11px; } +.sbar__bat { width: 22px; height: 11px; border-radius: 3px; border: 1.5px solid #fff; padding: 1.5px; } +.sbar__bat::before { content: ""; display: block; width: 72%; height: 100%; background: #fff; border-radius: 1px; } +.notch { position: absolute; left: 50%; top: 12px; width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; background: #000; z-index: 31; box-shadow: inset 0 0 0 4px #111; } + +.home { position: absolute; inset: 0; transform-origin: 50% 60%; } +.pages { position: absolute; inset: 0; } +.page { position: absolute; top: 0; width: 390px; height: 844px; } +.cell { position: absolute; display: flex; flex-direction: column; align-items: center; padding-top: 8px; } +.cell .lbl { margin-top: 7px; font: 500 12.5px/1.2 var(--ui); text-shadow: 0 1px 4px rgba(0, 0, 0, .55); white-space: nowrap; } +.cell.tap .ic, .cell.tap .fic { animation: tapb .3s ease; } +@keyframes tapb { 40% { transform: scale(.86); } } +.ic { + position: relative; display: grid; place-items: center; + width: 58px; height: 58px; border-radius: 30%; + color: #fff; + background: linear-gradient(145deg, var(--a), var(--b)); + box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px -6px rgba(0, 0, 0, .55); + flex: none; +} +.ic svg { width: 46%; height: 46%; } +.ndot { position: absolute; top: 4px; left: calc(50% + 20px); width: 13px; height: 13px; border-radius: 50%; background: var(--pink); border: 2px solid #0d0b40; } +.fic { width: 58px; height: 58px; padding: 7px; border-radius: 30%; background: rgba(236, 233, 249, .94); display: grid; grid-template-columns: 1fr 1fr; gap: 4px; } +.ic--mini { width: 100%; height: auto; aspect-ratio: 1; box-shadow: none; } +.ic--mini svg { stroke-width: 2.6; } + +.w-clock { position: absolute; padding: 26px 18px 0; } +.clk__line { white-space: nowrap; } +.clk__line > span { display: inline-block; will-change: transform; } +.clk__time { font: 300 88px/1 var(--ui); letter-spacing: -.02em; font-variant-numeric: tabular-nums; } +.clk__date { margin-top: 8px; font: 500 18px/1.2 var(--ui); } +.clk__wx { margin-top: 4px; font: 400 16px/1.2 var(--ui); opacity: .92; } + +.w-pics { position: absolute; padding: 8px 12px 18px; } +.pics { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .6); } +.pic { position: absolute; inset: 0; opacity: 0; transition: opacity 1.1s ease; } +.pic.on { opacity: 1; } +.pic--a { /* sunset over water */ + background: + radial-gradient(circle at 50% 58%, #fff1b8 0 9%, #ffc56b 10%, transparent 30%), + linear-gradient(to bottom, transparent 62%, rgba(10, 6, 60, .9) 62%), + repeating-linear-gradient(to bottom, transparent 0 7px, rgba(255, 190, 120, .28) 7px 9px) 0 62% / 100% 38% no-repeat, + linear-gradient(to bottom, #3b1c8f, #c2399b 40%, #ff7a59 62%); +} +.pic--b { /* mountains */ + background: + linear-gradient(150deg, transparent 52%, #1a1660 52.4%) 0 100% / 60% 62% no-repeat, + linear-gradient(-140deg, transparent 50%, #2a2390 50.4%) 100% 100% / 75% 75% no-repeat, + linear-gradient(140deg, transparent 50%, #3c32b8 50.4%) 0 100% / 75% 55% no-repeat, + radial-gradient(circle at 72% 28%, #fff 0 6%, transparent 7%), + linear-gradient(to bottom, #1ddbfd, #417df4 55%, #9a7dff); +} +.pic--c { /* neon city */ + background: + linear-gradient(to top, #fc59fb 0 2px, transparent 2px) 0 100% / 100% 100% no-repeat, + linear-gradient(#0a0920, #0a0920) 8% 100% / 16% 58% no-repeat, + linear-gradient(#120f33, #120f33) 28% 100% / 18% 76% no-repeat, + linear-gradient(#0a0920, #0a0920) 52% 100% / 14% 48% no-repeat, + linear-gradient(#17134a, #17134a) 74% 100% / 20% 68% no-repeat, + linear-gradient(#0a0920, #0a0920) 98% 100% / 12% 40% no-repeat, + radial-gradient(circle at 70% 22%, #fdf6ff 0 7%, transparent 8%), + linear-gradient(to bottom, #3a0d6e, #b8279b 70%, #fc59fb); +} +.pagedots { position: absolute; left: 0; right: 0; top: 748px; display: flex; justify-content: center; gap: 8px; } +.pagedots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(255, 255, 255, .45); transition: background .2s, width .2s; } +.pagedots i.on { background: #fff; width: 18px; border-radius: 4px; } +.glow { position: absolute; top: 0; bottom: 0; left: -80px; width: 160px; background: radial-gradient(closest-side, rgba(118, 250, 252, .85), rgba(29, 219, 253, .25) 55%, transparent); opacity: 0; pointer-events: none; z-index: 5; } + +.fscrim { position: absolute; inset: 0; background: #000; opacity: 0; pointer-events: none; z-index: 10; } +.fcard { + position: absolute; left: 45px; top: 282px; width: 300px; + padding: 22px 12px 14px; + border-radius: 32px; + background: #eeebf8; color: #1c1a2d; + z-index: 11; visibility: hidden; opacity: 0; + box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .6); +} +.fcard__grid { display: grid; grid-template-columns: repeat(3, 1fr); row-gap: 16px; } +.fcard__app { display: flex; flex-direction: column; align-items: center; gap: 7px; font: 500 12.5px/1.2 var(--ui); } +.fcard__title { margin-top: 16px; text-align: center; font: 600 17px/1 var(--ui); } + +.drawer { position: absolute; inset: 0; background: rgba(5, 4, 20, .8); z-index: 12; opacity: 0; visibility: hidden; } +.drawer__in { position: absolute; inset: 0; -webkit-mask-image: linear-gradient(to bottom, transparent 30px, #000 52px); mask-image: linear-gradient(to bottom, transparent 30px, #000 52px); } /* the list fades out under the status bar */ +.list { position: absolute; left: 0; right: 0; top: 46px; padding: 0 58px 0 20px; will-change: transform; } +.search { display: flex; align-items: center; gap: 12px; height: 50px; margin: 6px 0 12px; padding: 0 18px; border-radius: 25px; background: #f2f0fb; color: #4b4867; font: 500 16px/1 var(--ui); } +.search .gl { width: 22px; height: 22px; color: #4b4867; stroke-width: 2.4; } +.hdr { height: 34px; padding: 12px 0 0 2px; font: 500 13px/1 var(--ui); color: #b9b6dc; } +.row { display: flex; align-items: center; gap: 15px; height: 54px; overflow: hidden; transition: background .2s; border-radius: 14px; } +.row--note { height: 64px; } +.row .ic { width: 40px; height: 40px; } +.row__t { display: flex; flex-direction: column; min-width: 0; } +.row__n { font: 500 17.5px/1.15 var(--ui); } +.row__p { margin-top: 3px; font: 400 13px/1.2 var(--ui); color: #cfcbef; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } +.row.flash { background: rgba(255, 255, 255, .12); } +.row.held { background: rgba(255, 255, 255, .1); } + +.alpha { position: absolute; right: 8px; top: 404px; width: 30px; display: flex; flex-direction: column; align-items: center; z-index: 2; } +.alpha__s { width: 15px; height: 15px; margin-bottom: 8px; color: #fff; opacity: .9; } +.alpha__l { display: block; width: 30px; height: 21px; font: 600 12.5px/21px var(--ui); text-align: center; color: rgba(255, 255, 255, .86); transform-origin: 50% 50%; } +.alpha__l.on { color: var(--pink); font-weight: 800; } +.bubble { position: absolute; left: 0; top: 0; width: 66px; height: 66px; display: grid; place-items: center; border-radius: 50%; background: var(--grad); color: #fff; font: 700 32px/1 var(--ui); box-shadow: 0 10px 30px -6px rgba(252, 89, 251, .6); opacity: 0; z-index: 3; pointer-events: none; text-shadow: 0 1px 6px rgba(0, 0, 0, .3); } + +.menu { position: absolute; left: 0; top: 0; width: 236px; padding: 6px 0; border-radius: 24px; background: #f6f4fd; color: #1e1c2c; z-index: 20; opacity: 0; visibility: hidden; transform-origin: 30% 0; box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .65); } +.mi { display: flex; align-items: center; gap: 16px; height: 50px; padding: 0 20px; font: 500 16px/1 var(--ui); } +.mi .gl { width: 22px; height: 22px; stroke-width: 1.9; color: #3a3752; } +.mi--hide.pick { background: #e2dcff; } + +.snack { position: absolute; left: 24px; right: 24px; bottom: 64px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 22px; border-radius: 18px; background: #f1eefb; color: #1b1a29; font: 500 15px/1.2 var(--ui); z-index: 21; opacity: 0; visibility: hidden; box-shadow: 0 18px 40px -14px rgba(0, 0, 0, .6); } +.snack__undo { all: unset; font: 700 15px/1 var(--ui); color: #5a33e6; cursor: pointer; padding: 4px; } + +.sheet { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 22px 36px; border-radius: 30px 30px 0 0; background: #f4f2fb; color: #1c1a2d; z-index: 22; transform: translateY(105%); box-shadow: 0 -20px 50px -20px rgba(0, 0, 0, .5); } +.sheet__grab { display: block; width: 36px; height: 4px; margin: 0 auto 14px; border-radius: 2px; background: #a9a5c2; } +.sheet h4 { margin: 0 0 10px; font: 600 22px/1.2 var(--ui); } +.sheet__h { margin: 14px 0 8px; font: 600 13.5px/1 var(--ui); color: #5d5a78; } +.seg { display: flex; border: 1.5px solid #8a86a6; border-radius: 22px; overflow: hidden; } +.seg span { flex: 1; display: grid; place-items: center; height: 40px; font: 500 14px/1 var(--ui); border-left: 1.5px solid #8a86a6; transition: background .2s; } +.seg span:first-child { border-left: 0; } +.seg span.on { background: #ddd5ff; font-weight: 700; } + +.cam { position: absolute; inset: 0; background: #000; z-index: 25; visibility: hidden; clip-path: inset(0 100% 0 0); } +.cam__view { + position: absolute; left: 0; right: 0; top: 52px; height: 560px; overflow: hidden; + background: + radial-gradient(circle at 66% 34%, #fff6d8 0 5%, #ffd48a 6%, transparent 22%), + linear-gradient(to bottom, #4b2ac9, #c2399b 45%, #ff9b6a 70%, #ffd48a); +} +.cam__hill { position: absolute; left: -10%; right: -10%; bottom: 0; } +.cam__hill--1 { height: 46%; background: #2a1563; clip-path: polygon(0 40%, 18% 22%, 36% 46%, 55% 18%, 74% 40%, 90% 28%, 100% 36%, 100% 100%, 0 100%); } +.cam__hill--2 { height: 30%; background: #120a36; clip-path: polygon(0 30%, 25% 12%, 48% 40%, 70% 20%, 100% 44%, 100% 100%, 0 100%); } +.cam__grid { position: absolute; inset: 0; background: linear-gradient(to right, transparent 33%, rgba(255, 255, 255, .35) 33%, rgba(255, 255, 255, .35) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(255, 255, 255, .35) 66%, rgba(255, 255, 255, .35) calc(66% + 1px), transparent calc(66% + 1px)), linear-gradient(to bottom, transparent 33%, rgba(255, 255, 255, .35) 33%, rgba(255, 255, 255, .35) calc(33% + 1px), transparent calc(33% + 1px), transparent 66%, rgba(255, 255, 255, .35) 66%, rgba(255, 255, 255, .35) calc(66% + 1px), transparent calc(66% + 1px)); } +.cam__focus { position: absolute; left: 50%; top: 50%; width: 76px; height: 76px; margin: -38px; border: 2px solid #ffe066; border-radius: 6px; } +.cam__flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; } +.cam__modes { position: absolute; left: 0; right: 0; top: 632px; display: flex; justify-content: center; gap: 26px; font: 600 13px/1 var(--ui); letter-spacing: .08em; text-transform: uppercase; color: #9d9ab8; } +.cam__modes .on { color: var(--ice); } +.cam__bar { position: absolute; left: 0; right: 0; top: 684px; display: flex; align-items: center; justify-content: space-between; padding: 0 44px; } +.cam__thumb { width: 50px; height: 50px; border-radius: 12px; background: linear-gradient(145deg, #ff9b6a, #4b2ac9); border: 2px solid #fff; } +.cam__shutter { width: 78px; height: 78px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px #000, 0 0 0 9px #fff; } +.cam__flip { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: #26243a; } +.cam__flip .gl { width: 24px; height: 24px; color: #fff; } +.cam__close { position: absolute; top: 58px; right: 16px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .45); color: #fff; font: 400 26px/1 var(--ui); cursor: pointer; } + +.gbar { position: absolute; left: 50%; bottom: 9px; width: 124px; height: 5px; margin-left: -62px; border-radius: 3px; background: rgba(255, 255, 255, .88); z-index: 40; pointer-events: none; } + +.finger { + position: absolute; left: 0; top: 0; width: 50px; height: 50px; margin: -25px 0 0 -25px; + border-radius: 50%; + background: rgba(255, 255, 255, .26); + border: 2px solid rgba(255, 255, 255, .85); + box-shadow: 0 0 0 7px rgba(255, 255, 255, .1), 0 10px 26px rgba(0, 0, 0, .35); + z-index: 50; opacity: 0; pointer-events: none; +} +.finger__ring { position: absolute; inset: -9px; border-radius: 50%; background: conic-gradient(var(--pink) calc(var(--ring, 0) * 1turn), transparent 0); -webkit-mask: radial-gradient(closest-side, transparent 78%, #000 80%); mask: radial-gradient(closest-side, transparent 78%, #000 80%); } + +/* ---------- responsive ---------- */ +@media (max-width: 1100px) { + .nav__links { display: none; } + .nav .btn--sm { margin-left: auto; } + .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } +} + +@media (max-width: 900px) { + body { font-size: 16px; } + .hero { padding-top: 104px; } + .hero__grid { grid-template-columns: minmax(0, 1fr); } + .hero__stage { margin-top: 30px; } + .hero .phone-host { width: min(300px, 70vw); } + .sticker { font-size: 12px; } + .sticker--a { left: 0; } + .sticker--b { right: 0; } + .spinner { width: 100px; height: 100px; left: 2%; } + + .story__body { display: block; padding: 0; } + .story__stage { position: sticky; top: 0; place-items: start center; padding-top: 70px; } + .story .phone-host { height: 52vh; height: 52svh; } + .story__num { top: 32%; font-size: 58vw; } + .story__rail { right: 14px; top: 32%; gap: 6px; } + .story__rail li { width: 8px; height: 20px; } + .story__rail li.on { height: 32px; } + .story__steps { position: relative; z-index: 2; margin-top: -100vh; margin-top: -100svh; padding: 0 var(--pad) 50svh; } + .step { align-items: flex-end; padding: 0 0 4svh; } + .step__card { opacity: 0; background: rgba(7, 7, 13, .94); border: var(--b) solid var(--fg); box-shadow: 6px 6px 0 var(--violet); padding: 18px 18px 20px; width: 100%; } + .step__title { margin: 10px 0 10px; font-size: clamp(24px, 7vw, 34px); } + .step__text { font-size: 15.5px; line-height: 1.45; } + .step__gesture { display: none; } + + .cards { grid-template-columns: minmax(0, 1fr); } + .card { min-height: 0; } + .stats { grid-template-columns: 1fr 1fr; row-gap: 40px; } + .privacy__list { grid-template-columns: 1fr; } + .pitem + .pitem { padding-left: 0; border-left: 0; } + + .play__grid { grid-template-columns: minmax(0, 1fr); } + .play .phone-host { height: 72svh; } + .play__side { order: -1; } + .play__caption { min-height: 2.4em; margin-bottom: 18px; } + .howto { display: none; } + + .get__grid { grid-template-columns: minmax(0, 1fr); } + .qr { justify-self: start; } + .foot__row .textlink { margin-left: 0; } +} + +@media (max-width: 520px) { + .cta .btn { width: 100%; justify-content: space-between; } + .btn--huge { width: 100%; justify-content: space-between; font-size: 18px; } + .marquee--pink { transform: rotate(-2.5deg) scale(1.06); } +} + +@media (prefers-reduced-motion: reduce) { + html { scroll-behavior: auto; } + *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } + .line__in, .rv { transform: none !important; opacity: 1 !important; } +}