* {
    -webkit-user-select: none;
    -webkit-user-drag: none;
    -webkit-tap-highlight-color: transparent;
    cursor: default;
    box-sizing: border-box;
}

/* getpatois.com's display face, bundled (SIL Open Font License, see Gabarito-OFL.txt) */
@font-face {
    font-family: "Gabarito";
    src: url("Gabarito.ttf") format("truetype");
    font-weight: 400 900;
}

/* Same palette as getpatois.com */
:root {
    --bg: #fff4df;
    --ink: #14110f;
    --blue: #2b3cff;
    --tomato: #ff5b35;
    --butter: #ffd23f;
    --lilac: #c9b6ff;
    --muted: rgba(20, 17, 15, .6);
    --spotify: #1ed760;
    --apple-music: #fa2d48;
    --display: "Gabarito", -apple-system, "SF Pro Rounded", system-ui, sans-serif;
}

html {
    height: 100%;
}

body {
    margin: 0;
    height: 100%;
    font-family: -apple-system, "SF Pro Rounded", system-ui, sans-serif;
    touch-action: manipulation;
}

body:not(.platform-mac, .platform-ios) :is(.platform-mac, .platform-ios),
body.platform-ios .platform-mac,
body.platform-mac .platform-ios {
    display: none;
}

/* iOS */

body.platform-ios {
    overflow: hidden;
    background: var(--bg);
    color: var(--ink);
    font-size: 17px;
    line-height: 1.3;
}

.screen {
    position: fixed;
    inset: 0;
    display: flex;
    flex-direction: column;
    padding: calc(env(safe-area-inset-top) + 48px) 24px calc(env(safe-area-inset-bottom) + 24px);
    opacity: 0;
    transform: scale(1.03);
    pointer-events: none;
    transition: opacity .3s ease, transform .45s cubic-bezier(.2, .8, .2, 1);
}

.screen.is-on {
    opacity: 1;
    transform: none;
    pointer-events: auto;
}

.screen h1 {
    margin: 0;
    font-family: var(--display);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -.04em;
}

.screen p {
    margin: 0;
}

.muted {
    color: var(--muted);
}

[hidden] {
    display: none !important;
}

/* title + one line under it, the first group on most screens */
.head {
    display: grid;
    gap: 10px;
    margin-top: 28px;
}

/* small uppercase section label */
.label {
    margin: 40px 0 12px;
    padding-left: 4px;
    color: rgba(20, 17, 15, .7);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.screen__foot {
    display: grid;
    gap: 10px;
    margin-top: auto;
    padding-top: 24px;
}

.btn {
    min-height: 54px;
    padding: 0 24px;
    border: 0;
    border-radius: 99px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-weight: 700;
}

.btn:not(.btn--bouncy):active {
    background: var(--tomato);
    color: var(--ink);
}

/* Kept on its own layer so pressing doesn't redraw the rounded corners. */
.btn--bouncy,
.opt {
    will-change: transform;
}

.btn--bouncy {
    transition: transform .4s cubic-bezier(.3, 1.8, .5, 1);
}

.btn--bouncy:active {
    transform: scale(.94);
}

.btn[disabled] {
    opacity: .3;
    background: var(--ink);
    color: #fff;
}

.btn--light {
    background: var(--bg);
    color: var(--ink);
}

.btn--ghost,
.btn--ghost[disabled] {
    background: transparent;
    color: var(--ink);
}

.btn--ghost:active {
    background: rgba(20, 17, 15, .08);
}

.dot {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #c9c3b6;
}

/* the service's own logo, once one is known: official artwork, unaltered.
   Spotify's green icon may only sit on white or black, so it gets a white disc. */
[data-service="spotify"] .dot,
.dot.is-spotify {
    background: #fff url("spotify.svg") center / contain no-repeat;
}

[data-service="appleMusic"] .dot,
.dot.is-appleMusic {
    border-radius: 0;
    background: url("applemusic.svg") center / contain no-repeat;
}

[data-service="deezer"] .dot,
.dot.is-deezer {
    border-radius: 0;
    background: url("deezer.svg") center / contain no-repeat;
}

[data-service="youtubeMusic"] .dot,
.dot.is-youtubeMusic {
    background: url("youtubemusic.svg") center / contain no-repeat;
}

[data-service="amazonMusic"] .dot,
.dot.is-amazonMusic {
    border-radius: 0;
    background: url("amazonmusic.svg") center / contain no-repeat;
}

[data-service="tidal"] .dot,
.dot.is-tidal {
    border-radius: 0;
    background: url("tidal.svg") center / 86% no-repeat;
}

[data-service="soundcloud"] .dot,
.dot.is-soundcloud {
    border-radius: 0;
    background: url("soundcloud.svg") center / contain no-repeat;
}

/* the words that matter, in cobalt: the colour alone, nothing behind it,
   like the asides in getpatois.com's "how it works" */
.mark {
    color: var(--blue);
}

/* each service's colour, and the ink that reads on it. A service's own button
   gets it from data-service; <body data-app> is the one picked, for your answers. */
:is([data-service="spotify"], [data-app="spotify"]) { --svc: var(--spotify); --svc-ink: var(--ink); }
:is([data-service="appleMusic"], [data-app="appleMusic"]) { --svc: var(--apple-music); --svc-ink: var(--ink); }
:is([data-service="deezer"], [data-app="deezer"]) { --svc: #a238ff; --svc-ink: #fff; }
:is([data-service="youtubeMusic"], [data-app="youtubeMusic"]) { --svc: #f03; --svc-ink: var(--ink); }
:is([data-service="amazonMusic"], [data-app="amazonMusic"]) { --svc: #25d1da; --svc-ink: var(--ink); }
:is([data-service="tidal"], [data-app="tidal"]) { --svc: var(--ink); --svc-ink: #fff; }
:is([data-service="soundcloud"], [data-app="soundcloud"]) { --svc: #f50; --svc-ink: var(--ink); }

/* hidden on screen, read aloud */
.sr {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* entrance motion, replayed each time a screen comes on. Only fills backwards:
   a finished animation that keeps holding would block :active's press effect. */
.screen.is-on .a-rise { animation: rise .5s ease-out backwards; }
.screen.is-on .d1 { animation-delay: .1s; }
.screen.is-on .d2 { animation-delay: .2s; }
.screen.is-on .d3 { animation-delay: .35s; }
.screen.is-on .d4 { animation-delay: .5s; }

@keyframes rise {
    from { opacity: 0; transform: translateY(12px); }
}

@keyframes pop {
    from { opacity: 0; transform: scale(.5) rotate(-8deg); }
}

/* 1. welcome */

.screen--welcome {
    padding-top: calc(env(safe-area-inset-top) + 16px);
    overflow: hidden;
    background: var(--bg);
}

/* small enough that "Open Apple Music links" stays on one line, so the headline
   never changes height as the services change */
.screen--welcome h1 {
    margin-top: 0;
    font-size: min(34px, 8.2vw);
    font-weight: 600;
    line-height: 1.16;
    letter-spacing: -.045em;
    white-space: nowrap;
}

/* the service names in the welcome headline: each service's own logo, then its name */
.svc {
    display: inline-block;
    white-space: nowrap;
}

.svc::before {
    content: "";
    display: inline-block;
    width: .78em;
    height: .78em;
    margin-right: .16em;
    vertical-align: -.1em;
    background: center / contain no-repeat;
}

.screen.is-on .svc.is-boing {
    animation: boing .6s cubic-bezier(.3, 1.4, .5, 1);
}

/* Spotify's green icon may only sit on white or black: a white disc, as on .dot */
.svc--spotify::before {
    border-radius: 50%;
    background: #fff url("spotify.svg") center / contain no-repeat;
}

.svc--appleMusic::before { background-image: url("applemusic.svg"); }
.svc--deezer::before { background-image: url("deezer.svg"); }
.svc--youtubeMusic::before { background-image: url("youtubemusic.svg"); }
.svc--amazonMusic::before { background-image: url("amazonmusic.svg"); }
.svc--tidal::before { background: url("tidal.svg") center / 86% no-repeat; }
.svc--soundcloud::before { background-image: url("soundcloud.svg"); }

/* motion turned off: no cycling, so the headline names no one service */
.svc--any {
    color: var(--blue);
}

.svc--any::before {
    display: none;
}

/* welcome: a chat that plays on a loop. A friend's link flips into
   the same song in your app, and you answer. */
.chat {
    position: relative;
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    min-height: 240px;
    font-size: 17px;
    line-height: 22px;
}

@media (min-height: 800px) {
    .chat {
        zoom: 1.12;
    }
}

.chat__msg {
    padding: 12px 16px;
    border-radius: 22px 22px 22px 6px;
}

.chat__msg--in {
    align-self: flex-start;
    background: rgba(20, 17, 15, .05);
}

.chat__msg--out {
    align-self: flex-end;
    margin-top: -48px;   /* takes the typing dots' place */
    border: 3px solid var(--ink);
    border-radius: 22px 22px 6px 22px;
    background: var(--butter);
    font-weight: 700;
    opacity: 0;
}

.chat__song {
    position: relative;
    align-self: flex-start;
    width: 286px;
    height: 72px;
    perspective: 600px;
}

.chat__card {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    border: 3px solid rgba(20, 17, 15, .14);
    border-radius: 22px 22px 22px 6px;
    background: #fff;
    backface-visibility: hidden;
}

.chat__card .dot {
    width: 40px;
    height: 40px;
}

.chat__card > span:last-child {
    display: grid;
}

.chat__card b {
    font-size: 16px;
}

.chat__card b + span {
    color: var(--muted);
    font-size: 13px;
    line-height: 17px;
}

.chat__card--to {
    opacity: 0;
}

.chat__hop {
    position: absolute;
    top: 18px;
    left: 4px;
    width: 36px;
    height: 36px;
    border-radius: 22.5%;
    opacity: 0;
}

.chat__pop {
    position: absolute;
    top: 20px;
    width: 18px;
    height: 18px;
    fill: var(--tomato);
    opacity: 0;
}

.chat__pop svg {
    display: block;
    width: 100%;
    height: 100%;
}

.chat__pop--1 { left: 60px; --dx: -14px; --r: -20deg; }
.chat__pop--2 { left: 120px; --dx: 6px; --r: 15deg; }
.chat__pop--3 { left: 190px; --dx: 18px; --r: 25deg; }

.chat__typing {
    align-self: flex-end;
    display: flex;
    gap: 5px;
    padding: 14px 16px;
    border-radius: 22px 22px 6px 22px;
    background: rgba(20, 17, 15, .05);
    opacity: 0;
}

.chat__typing span {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--blue);
    animation: typing-dot .9s ease-in-out infinite;
}

.chat__typing span:nth-child(2) { animation-delay: .15s; }
.chat__typing span:nth-child(3) { animation-delay: .3s; }

.screen.is-on .chat__msg--in { animation: chat-in1 9s ease-in-out .3s infinite; }
.screen.is-on .chat__song { animation: chat-in2 9s ease-in-out .3s infinite; }
.screen.is-on .chat__card--from { animation: chat-from 9s ease-in-out .3s infinite; }
.screen.is-on .chat__card--to { animation: chat-to 9s ease-in-out .3s infinite; }
.screen.is-on .chat__hop { animation: chat-hop 9s ease-in-out .3s infinite; }
.screen.is-on .chat__pop { animation: chat-pop 9s ease-in-out .3s infinite; }
.screen.is-on .chat__typing { animation: chat-type 9s ease-in-out .3s infinite; }
.screen.is-on .chat__msg--out { animation: chat-reply 9s ease-in-out .3s infinite; }

/* the chat scrolls away, newest first, and the next one starts straight after */
@keyframes chat-in1 {
    0% { opacity: 0; transform: translateY(14px) scale(.9); }
    4%, 94% { opacity: 1; transform: none; }
    98%, 100% { opacity: 0; transform: translateY(-16px); }
}

@keyframes chat-in2 {
    0%, 5% { opacity: 0; transform: translateY(14px) scale(.9); }
    10%, 92% { opacity: 1; transform: none; }
    96%, 100% { opacity: 0; transform: translateY(-16px); }
}

@keyframes chat-from {
    0%, 32% { opacity: 1; transform: rotateX(0); }
    38%, 100% { opacity: 0; transform: rotateX(-90deg); }
}

@keyframes chat-to {
    0%, 37% { opacity: 0; transform: rotateX(90deg); }
    44%, 100% { opacity: 1; transform: rotateX(0); }
}

@keyframes chat-hop {
    0%, 30% { opacity: 0; transform: scale(.4); }
    33% { opacity: 1; }
    42% { opacity: 1; transform: translate(150px, -34px) rotate(20deg); }
    46%, 100% { opacity: 0; transform: translate(170px, -10px) scale(.6); }
}

@keyframes chat-pop {
    0%, 44% { opacity: 0; transform: scale(.3); }
    50% { opacity: 1; transform: translate(var(--dx), -26px) rotate(var(--r)); }
    62%, 100% { opacity: 0; transform: translate(var(--dx), -46px) scale(.8); }
}

@keyframes chat-type {
    0%, 50% { opacity: 0; transform: scale(.6); }
    53%, 62% { opacity: 1; transform: none; }
    65%, 100% { opacity: 0; transform: scale(.6); }
}

@keyframes chat-reply {
    0%, 63% { opacity: 0; transform: translateY(14px) scale(.9); }
    68%, 90% { opacity: 1; transform: none; }
    94%, 100% { opacity: 0; transform: translateY(-16px); }
}

@keyframes typing-dot {
    50% { opacity: 1; transform: translateY(-3px); }
    0%, 100% { opacity: .3; }
}

.screen--welcome .screen__foot {
    padding-top: 36px;
}

/* the first open, on the logo's own blue. One picture cut in two along the gap
   between the radio and the P, so the finished logo is the real artwork. */
.opening {
    position: fixed;
    inset: 0;
    z-index: 10;
    display: grid;
    place-items: center;
    background: var(--blue);
    transition: opacity .3s ease;
}

.opening.is-leaving {
    opacity: 0;
}

.opening__logo {
    position: relative;
    width: 260px;
    height: 260px;
    overflow: hidden;
    border-radius: 22.5%;
    animation: opening-grow 2.03s linear both;
}

.opening__logo img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.opening__radio {
    clip-path: inset(0 36.5% 0 0);
    transform-origin: 30% 100%;
    animation: opening-radio 1.2s linear both;
}

.opening__letter {
    clip-path: inset(0 0 0 63.5%);
    transform-origin: 76% 41%;
    animation: opening-letter 1.28s linear both;
}

/* rises with an overshoot, then takes the bump when the P lands */
@keyframes opening-radio {
    0%, 7% { transform: translateY(105%); }
    37% { transform: translateY(-4%); animation-timing-function: ease-out; }
    63% { transform: none; animation-timing-function: ease-out; }
    75% { transform: translateY(3%) scale(1.02, .97); animation-timing-function: cubic-bezier(.3, 1.8, .5, 1); }
    100% { transform: none; }
}

/* slapped on: lands big and tilted, squashes, settles */
@keyframes opening-letter {
    0%, 50% { opacity: 0; transform: scale(1.6) rotate(-10deg); animation-timing-function: cubic-bezier(.4, 0, 1, 1); }
    64% { opacity: 1; transform: scale(1.14, .86); animation-timing-function: ease-out; }
    77% { transform: scale(.95, 1.06); animation-timing-function: cubic-bezier(.3, 1.8, .5, 1); }
    100% { opacity: 1; transform: none; }
}

/* crouches, then expands past the edges of the screen */
@keyframes opening-grow {
    0%, 65% { transform: none; animation-timing-function: ease-out; }
    73% { transform: scale(.92); animation-timing-function: cubic-bezier(.7, 0, .6, 1); }
    100% { transform: scale(7); }
}

/* setup: one conversation. The welcome hands over to it in place: the wordmark
   stays put and the rest changes around it, so neither screen zooms in. */
.screen--welcome,
.screen--setup {
    transform: none;
}

.screen--setup {
    padding-top: calc(env(safe-area-inset-top) + 16px);
    background: var(--bg);
}

.talk {
    display: flex;
    flex: 1;
    flex-direction: column;
    min-height: 0;
    margin: 8px -6px 0;
    padding: 0 6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    /* earlier messages fade out at the edges rather than being cut off */
    -webkit-mask-image: linear-gradient(to bottom, transparent, #000 16px, #000 calc(100% - 16px), transparent);
    mask-image: linear-gradient(to bottom, transparent, #000 16px, #000 calc(100% - 16px), transparent);
}

.talk > * {
    flex: none;
}

.talk__options:not(:empty) {
    padding: 4px 0 16px;
}

.talk__options > * {
    animation: rise .3s ease-out backwards;
}

.talk::-webkit-scrollbar {
    display: none;
}

.talk__msgs {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px 0 6px;
    line-height: 22px;
}

.talk__msgs > * {
    flex: none;
    animation: rise .3s ease-out backwards;
}

.screen .talk__head {
    margin: 8px 0 2px;
    font-family: var(--display);
    font-size: 34px;
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -.04em;
}

.talk__in,
.talk__me {
    max-width: 310px;
}

.talk__in {
    align-self: flex-start;
    padding: 12px 16px;
    border-radius: 18px 18px 18px 6px;
    background: rgba(20, 17, 15, .05);
}

.talk__me {
    align-self: flex-end;
    padding: 9px 16px;
    border: 3px solid var(--ink);
    border-radius: 20px 20px 6px 20px;
    background: var(--butter);
    font-weight: 700;
    rotate: 1deg;
}

/* a reply starts a new turn: enough room that the last one clears the screen */
.talk__me:not(:first-child) {
    margin-top: 18px;
}

/* once a service is picked, your answers are in its colour */
.talk__me.is-app {
    background: var(--svc, var(--butter));
    color: var(--svc-ink, var(--ink));
}

.talk__typing {
    display: flex;
    gap: 4px;
    padding: 8px 0 2px;
}

.talk__typing img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    animation: talk-hop .6s ease-in-out infinite;
}

.talk__typing img:nth-child(2) { animation-delay: .2s; }
.talk__typing img:nth-child(3) { animation-delay: .4s; }

@keyframes talk-hop {
    30% { transform: translateY(-6px); }
    60%, 100% { transform: none; }
}

.talk__steps,
.talk__card,
.talk__choices {
    border: 3px solid rgba(20, 17, 15, .14);
    border-radius: 20px;
    background: #fff;
}

/* the steps on cobalt, like getpatois.com's "how it works" */
.talk__steps {
    margin: 0;
    padding: 3px 12px 3px 8px;
    border-color: var(--blue);
    background: var(--blue);
    color: #fff;
    list-style: none;
    line-height: 1.2;
}

.talk__steps li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
}

.talk__steps li + li {
    border-top: 1px solid rgba(255, 255, 255, .2);
}

.talk__steps li > span:last-child {
    display: grid;
    gap: 1px;
}

.talk__steps small {
    color: rgba(255, 255, 255, .8);
    font-size: 13px;
    font-weight: 500;
}

.talk__steps li:last-child small {
    padding-block: 8px;
    font-size: 14px;
    line-height: 18px;
}

.talk__steps li > span:last-child small {
    padding-block: 0;
    font-size: 13px;
    line-height: inherit;
}

/* the Mac shows the conversation in place of its steps, and left to right like
   everywhere else, so its one-screen styles for text and buttons stop here */
.platform-mac.is-talking > :not(.screen, .opening) {
    display: none !important;
}

body.platform-mac .screen {
    padding: 16px 24px 24px;
    font-size: 17px;
    line-height: 1.3;
    text-align: left;
}

body.platform-mac .screen h1 {
    margin: 0;
    font-size: 36px;
    line-height: 1.16;
}

body.platform-mac .screen .btn {
    margin-top: 0;
    padding: 0 24px;
    font: inherit;
    font-weight: 700;
}

body.platform-mac .screen .btn--outline {
    background: #fff;
    color: var(--ink);
}

body.platform-mac .screen :is(.talk__choice, .talk__quiet, .talk__link) {
    margin-top: 0;
    border-radius: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    transform: none;
}

body.platform-mac .screen .talk__choice {
    min-height: 46px;
    padding: 0 14px 0 10px;
}

body.platform-mac .screen .talk__link {
    margin-top: 10px;
    padding: 0;
    color: var(--blue);
    font-size: 14px;
}

body.platform-mac .screen p {
    max-width: none;
    margin: 0;
    color: var(--ink);
}

.talk__tile {
    display: grid;
    place-items: center;
    flex: none;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    color: var(--ink);
    font-size: 17px;
    font-weight: 800;
}

.talk__tile--1 { background: var(--lilac); rotate: -4deg; }
.talk__tile--2 { background: var(--butter); rotate: 3deg; }
.talk__tile--3 { background: var(--tomato); rotate: -3deg; }
.talk__tile--play { background: var(--ink); }

.talk__tile--play svg {
    width: 13px;
    height: 13px;
    fill: var(--bg);
}

.talk__warning {
    margin: 2px 0;
    padding: 14px 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(20, 17, 15, .08);
    rotate: -1deg;
}

.talk__warning b {
    display: block;
    font-size: 14px;
    line-height: 18px;
}

.talk__warning span {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    line-height: 18px;
}

.talk__card {
    padding: 12px 14px;
    border-bottom-left-radius: 6px;
}

.talk__promises,
.talk__checks {
    display: grid;
    margin-block: 0;
    list-style: none;
}

.talk__promises {
    gap: 8px;
    margin-inline: 0;
    padding: 0;
    font-size: 16px;
    font-weight: 600;
}

.talk__promises li,
.talk__checks li {
    display: flex;
    align-items: center;
    gap: 10px;
}

.talk__promises span {
    display: grid;
    place-items: center;
    flex: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--spotify);
}

.talk__promises svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.talk__link {
    display: block;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--blue);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
    text-decoration: underline;
}

.talk__checks {
    gap: 10px;
    padding: 14px;
    font-weight: 700;
}

.talk__dot {
    flex: none;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.talk__dot--1 { background: var(--lilac); }
.talk__dot--2 { background: var(--tomato); }

.talk__song {
    display: flex;
    align-self: flex-start;
    align-items: center;
    gap: 12px;
    width: 300px;
    height: 76px;
    padding: 0 16px;
    border: 2px solid var(--ink);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 0 var(--ink);
    rotate: -1deg;
}

.talk__song .dot {
    width: 40px;
    height: 40px;
}

.talk__song > span:last-child {
    display: grid;
}

.talk__song b {
    line-height: 21px;
}

.talk__song small {
    color: var(--muted);
    font-size: 13px;
    line-height: 17px;
}

.talk__vinyl {
    align-self: center;
    zoom: .6;
}

.talk__msgs .working {
    align-self: flex-start;
    margin-top: 0 !important;
}

.talk__replies {
    flex: none;
    display: grid;
    gap: 8px;
    min-height: 54px;
    padding-top: 16px;
}

.talk__replies > * {
    animation: rise .3s ease-out backwards;
}

.talk__replies .btn--outline {
    border: 3px solid rgba(20, 17, 15, .14);
    background: #fff;
    color: var(--ink);
}

/* a single choice is one list, not a pile of buttons */
.talk__choices {
    padding: 3px 0;
}

.talk__choice {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 52px;
    padding: 0 14px 0 16px;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-weight: 700;
    text-align: left;
}

.talk__choice:active {
    background: rgba(20, 17, 15, .05);
}

/* a service lights up in its own colour as you pick it */
.screen .talk__choice[data-service]:active {
    background: var(--svc);
    color: var(--svc-ink);
}

@media (hover: hover) {
    .screen .talk__choice[data-service]:hover {
        background: var(--svc);
        color: var(--svc-ink);
    }
}

.screen .talk__choice[data-service]:is(:hover, :active) svg {
    stroke: currentColor;
}

/* on a service's own colour, its logo sits on a white tile so it still shows */
.screen .talk__choice[data-service]:active .dot,
.opt[aria-pressed="true"] .dot {
    border-radius: 9px;
    background-color: #fff;
}

@media (hover: hover) {
    .screen .talk__choice[data-service]:hover .dot {
        border-radius: 9px;
        background-color: #fff;
    }
}

.talk__choice + .talk__choice {
    border-top: 1px solid rgba(20, 17, 15, .1);
}

.talk__choice:has(.dot) {
    padding-left: 10px;
}

.talk__choice .dot {
    width: 34px;
    height: 34px;
}

.talk__choice > span:not(.dot) {
    flex: 1;
}

.talk__choice svg {
    flex: none;
    width: 12px;
    height: 12px;
    fill: none;
    stroke: rgba(20, 17, 15, .35);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.talk__quiet {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--muted);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
}

/* top bar: back + step count */

.bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 32px;
    margin-top: -24px;
}

.bar__back {
    margin-left: -8px;
    padding: 6px 8px;
    border: 0;
    border-radius: 10px;
    background: none;
    color: var(--blue);
    font: inherit;
    font-weight: 600;
}

.bar__back::before {
    content: "‹ ";
    font-weight: 700;
}

.bar__back:active {
    background: rgba(20, 17, 15, .08);
}

.bar__step {
    color: var(--muted);
    font-size: 14px;
    font-weight: 600;
}

/* 2. pick a service */

/* Seven services don't fit a small phone: the list scrolls between the
   title and the Continue button. The padding keeps borders and the bounce
   clear of the scroll edge. */
.opts {
    display: grid;
    align-content: start;
    gap: 12px;
    flex: 1 1 auto;
    min-height: 0;
    margin: 28px -6px 0;
    padding: 6px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.opts::-webkit-scrollbar {
    display: none;
}

/* says there's more below, and clears once the last service is in view */
.opts.has-more {
    -webkit-mask-image: linear-gradient(#000 calc(100% - 48px), transparent);
    mask-image: linear-gradient(#000 calc(100% - 48px), transparent);
}

/* small iPhones: tighter rows, so the next service always shows through the fade */
@media (max-height: 700px) {
    .opts {
        margin-top: 18px;
    }

    .opts .opt {
        padding-block: 11px;
    }
}

.opt {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 16px;
    border: 3px solid rgba(20, 17, 15, .14);
    border-radius: 20px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 20px;
    font-weight: 700;
    text-align: left;
    transition: background .25s ease, border-color .25s ease, transform .4s cubic-bezier(.3, 1.8, .5, 1);
}

.opt:active {
    transform: scale(.94);
}

/* beats the entrance animation the options share with the rest of the screen */
.screen.is-on .opt.is-boing,
.screen.is-on .btn.is-boing {
    animation: boing .6s cubic-bezier(.3, 1.4, .5, 1);
}

@keyframes boing {
    25% { transform: scale(1.06, .92); }
    50% { transform: scale(.96, 1.05); }
    72% { transform: scale(1.02, .98); }
}

.opt[aria-pressed="true"] {
    border-color: var(--ink);
    background: var(--svc, var(--butter));
    color: var(--svc-ink, var(--ink));
}

.opt__check {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    margin-left: auto;
    border: 2px solid rgba(20, 17, 15, .2);
    border-radius: 50%;
}

.opt__check svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--butter);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    opacity: 0;
    transform: scale(.4);
    transition: opacity .15s ease, transform .4s cubic-bezier(.3, 1.8, .5, 1);
}

.opt[aria-pressed="true"] .opt__check {
    border-color: var(--ink);
    background: var(--ink);
}

.opt[aria-pressed="true"] .opt__check svg {
    opacity: 1;
    transform: none;
}

/* 3. Safari extension */
.how__why {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.3;
}

/* three steps, each a card: number, what to do, what it looks like in Settings */
.how {
    display: grid;
    gap: 10px;
    margin: 28px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: how;
}

.how li {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 66px;
    padding: 10px 14px 10px 10px;
    border: 3px solid rgba(20, 17, 15, .14);
    border-radius: 20px;
    background: #fff;
}

.how li::before {
    counter-increment: how;
    content: counter(how);
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 13px;
    background: var(--lilac);
    font-size: 20px;
    font-weight: 800;
    transform: rotate(-4deg);
}

.how li:nth-child(2)::before {
    background: var(--butter);
    transform: rotate(3deg);
}

.how li:nth-child(3)::before {
    background: var(--tomato);
    transform: rotate(-3deg);
}

.screen.is-on .how li::before {
    animation: pop .4s cubic-bezier(.2, 1.4, .4, 1) both;
}

.screen.is-on .how li:nth-child(1)::before { animation-delay: .32s; }
.screen.is-on .how li:nth-child(2)::before { animation-delay: .44s; }
.screen.is-on .how li:nth-child(3)::before { animation-delay: .56s; }

.how__text {
    display: grid;
    flex: 1;
    gap: 2px;
    min-width: 0;
    font-size: 17px;
    line-height: 1.2;
}

.how__text small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.how__compass {
    flex: none;
    width: 30px;
    height: 30px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 2;
}

.how__compass path {
    fill: var(--blue);
    stroke: none;
}

.how__allow {
    display: inline-flex;
    flex: none;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 99px;
    background: #ddf7e6;
    font-size: 14px;
    font-weight: 700;
}

.how__allow svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* the privacy promise, said plainly, with the policy one tap away */
.assure {
    display: grid;
    gap: 4px;
    margin: 20px 4px 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
    text-align: center;
}

.assure__promise {
    text-wrap: balance;
    color: var(--ink);
    font-size: 16px;
    font-weight: 700;
}

.assure__link {
    padding: 0;
    border: 0;
    background: none;
    color: var(--blue);
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
}

/* small iPhones: the same screen, a little tighter */
@media (max-height: 700px) {
    .how {
        margin-top: 18px;
    }

    .how li {
        min-height: 58px;
        padding-block: 6px;
    }
}

.foot-hint {
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

/* a small switch that turns itself on, next to "Turn on Patois" */
.switch {
    position: relative;
    flex: none;
    width: 46px;
    height: 28px;
    border-radius: 99px;
    background: #d9d2c4;
    animation: switch-track 4s ease-in-out 1s infinite;
}

.switch span {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    animation: switch-knob 4s ease-in-out 1s infinite;
}

/* back from Settings with Patois not seen yet: the picture doesn't claim it's on */
.is-back .switch,
.is-back .switch span {
    animation: none;
}

@keyframes switch-track {
    0%, 20%, 100% { background: #d9d2c4; }
    35%, 85% { background: var(--spotify); }
}

@keyframes switch-knob {
    0%, 20%, 100% { transform: none; }
    35%, 85% { transform: translateX(18px); }
}

.chip {
    padding: 1px 8px;
    border-radius: 99px;
    background: #ddf7e6;
}

.links {
    display: flex;
    justify-content: center;
    gap: 28px;
}

.links button {
    min-height: 44px;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    font-weight: 700;
}

.links .links__quiet {
    color: var(--muted);
}

/* "Working in Safari", once the extension has been seen */
.working {
    display: inline-flex;
    align-items: center;
    justify-self: start;
    gap: 8px;
    height: 32px;
    margin-top: 4px !important;
    padding: 0 14px 0 6px;
    border-radius: 99px;
    background: #ddf7e6;
    font-size: 15px;
    font-weight: 700;
}

.working span {
    display: grid;
    place-items: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--spotify);
}

.working svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.screen.is-on .working {
    animation: note-pop .9s cubic-bezier(.2, 1.5, .4, 1) 1.2s both;
}

/* the record: spins slowly, bops, notes float around it */
.vinyl {
    position: relative;
    flex: none;
    width: 290px;
    height: 238px;
}

.vinyl__disc {
    position: absolute;
    top: 20px;
    left: 48px;
    width: 199px;
    height: 217px;
}

.vinyl__bop {
    position: relative;
    width: 100%;
    height: 100%;
    transform-origin: 50% 85%;
    animation: vinyl-bop 1.6s ease-in-out 1.6s infinite;
}

.vinyl img {
    display: block;
    width: 100%;
    height: 100%;
}

.vinyl__sheen {
    position: absolute;
    top: 6px;
    left: 4px;
    width: 188px;
    height: 180px;
    border-radius: 50%;
    mix-blend-mode: screen;
    background: conic-gradient(from 0deg, transparent 0 12%, rgba(255, 255, 255, .22) 18%, transparent 26% 60%, rgba(255, 255, 255, .16) 66%, transparent 74%);
    -webkit-mask: radial-gradient(circle at 50% 46%, transparent 0 28%, #000 30% 68%, transparent 71%);
    animation: vinyl-spin 6s linear infinite;
}

.vinyl .vinyl__label {
    position: absolute;
    top: 51px;
    left: 60px;
    width: 77px;
    height: 73px;
    animation: vinyl-spin 8s linear infinite;
}

.vinyl__note {
    position: absolute;
}

.vinyl__note--blue { top: 17px; left: 0; width: 55px; height: 55px; }
.vinyl__note--orange { top: 0; left: 226px; width: 53px; height: 58px; }
.vinyl__note--black { top: 152px; left: 6px; width: 54px; height: 56px; }
.vinyl__note--lilac { top: 163px; left: 234px; width: 56px; height: 67px; }

.vinyl__note--blue img { animation: note-swing 6s ease-in-out 1s infinite; }
.vinyl__note--orange img { animation: note-hop 3.2s ease-in-out 1.1s infinite; }
.vinyl__note--black img { animation: note-hop 3.2s ease-in-out 1.6s infinite; }
.vinyl__note--lilac img { animation: note-swing 6s ease-in-out 1.5s infinite reverse; }

/* drop in and pop the notes each time the screen comes on */
.screen.is-on .vinyl__disc { animation: vinyl-drop 1.6s cubic-bezier(.2, 1.2, .4, 1) both; }
.screen.is-on .vinyl__note { animation: note-pop .9s cubic-bezier(.2, 1.5, .4, 1) .45s both; }
.screen.is-on .vinyl__note--orange { animation-delay: .55s; }
.screen.is-on .vinyl__note--black { animation-delay: .65s; }
.screen.is-on .vinyl__note--lilac { animation-delay: .75s; }

@keyframes vinyl-drop {
    0% { opacity: 0; transform: translateY(-60px) rotate(-120deg) scale(.6); }
    70% { opacity: 1; transform: translateY(6px) rotate(8deg) scale(1.04); }
}

@keyframes vinyl-bop {
    0%, 50%, 100% { transform: none; }
    12% { transform: scale(1.05, .95) translateY(3px); }
    30% { transform: scale(.98, 1.03) translateY(-4px); }
}

@keyframes vinyl-spin {
    to { transform: rotate(360deg); }
}

@keyframes note-pop {
    0% { opacity: 0; transform: scale(0) rotate(-40deg); }
    70% { opacity: 1; transform: scale(1.2) rotate(10deg); }
}

@keyframes note-swing {
    0%, 100% { transform: rotate(-10deg); }
    25% { transform: translate(-4px, -10px) rotate(6deg); }
    50% { transform: translate(0, -4px) rotate(14deg); }
    75% { transform: translate(4px, -12px) rotate(-4deg); }
}

@keyframes note-hop {
    0%, 100% { transform: none; }
    20% { transform: translateY(2px) scale(1.12, .88); }
    45% { transform: translateY(-16px) scale(.94, 1.08) rotate(-12deg); }
    70% { transform: scale(1.06, .94); }
}

/* the converter, laid over the record while a link is found */
.vinyl__path,
.vinyl__tile,
.vinyl .vinyl__fly {
    display: none;
}

.vinyl__path {
    position: absolute;
    inset: 0;
    overflow: visible;
    fill: none;
    stroke: rgba(20, 17, 15, .22);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 2 10;
    animation: dash 1.6s linear infinite;
}

.vinyl__tile {
    position: absolute;
    top: 118px;
    place-items: center;
    width: 60px;
    height: 60px;
    filter: drop-shadow(0 6px 10px rgba(20, 17, 15, .18));
    animation: note-pop .6s cubic-bezier(.2, 1.5, .4, 1) both;
}

.vinyl__tile .dot {
    width: 54px;
    height: 54px;
}

.vinyl__tile--from { left: -26px; }
.vinyl__tile--to { left: 256px; animation: note-pop .6s cubic-bezier(.2, 1.5, .4, 1) .1s both, catch .8s ease-in-out 1.2s infinite; }

.vinyl .vinyl__fly {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    offset-path: path("M4 116 Q145 -70 286 116");
    offset-rotate: 0deg;
    opacity: 0;
    animation: fly 2.4s ease-in-out .4s infinite;
}

.vinyl__fly:nth-of-type(2) { animation-delay: 1s; }
.vinyl__fly:nth-of-type(3) { animation-delay: 1.6s; }
.vinyl__fly:nth-of-type(4) { animation-delay: 2.2s; }

.is-busy .vinyl__note { display: none; }
.is-busy .vinyl__path, .is-busy .vinyl .vinyl__fly { display: block; }
.is-busy .vinyl__tile { display: grid; }
.is-busy .vinyl__bop { animation-duration: .8s; animation-delay: 0s; }
.is-busy .vinyl .vinyl__label { animation-duration: 2s; }

@keyframes fly {
    0% { offset-distance: 0%; opacity: 0; transform: scale(.5) rotate(-20deg); }
    15% { opacity: 1; transform: rotate(-8deg); }
    85% { opacity: 1; transform: rotate(10deg); }
    100% { offset-distance: 100%; opacity: 0; transform: scale(.6) rotate(24deg); }
}

@keyframes catch {
    15% { transform: scale(1.14) rotate(-6deg); }
    35% { transform: scale(.96) rotate(3deg); }
    50% { transform: none; }
}

@keyframes dash {
    to { stroke-dashoffset: -48; }
}

/* 4. you're set */

.screen--done .vinyl {
    align-self: center;
    margin-top: auto;
    zoom: .8;
}

@media (min-height: 800px) {
    .screen--done .vinyl {
        zoom: 1;
    }
}

.screen--done h1 {
    font-size: 52px;
    font-weight: 800;
    letter-spacing: -.055em;
}

.screen--done .head {
    margin-top: 8px;
}

/* you're set: one quiet tip about sharing from other apps */
.tip-card {
    margin-top: 28px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(20, 17, 15, .05);
}

.tip-card__title {
    margin-bottom: 4px !important;
    font-size: 16px;
    font-weight: 700;
}

.tip-card__text {
    margin-bottom: 12px !important;
    color: var(--muted);
    font-size: 15px;
    line-height: 20px;
}

.tip-card__chips {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tip-card__chips > span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px 0 5px;
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
    font-weight: 700;
}

.tip-card__chips img,
.tip-card__share {
    width: 22px;
    height: 22px;
    border-radius: 6px;
}

.tip-card__share {
    display: grid;
    place-items: center;
    background: var(--lilac);
}

.tip-card__share svg {
    width: 12px;
    height: 12px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.tip-card__arrow {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: rgba(20, 17, 15, .5);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* 5. home */

.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 40px;
    margin-top: -24px;
}

/* the site's wordmark: heavy Gabarito, set tight */
.screen .brand {
    display: flex;
    align-items: center;
    gap: 9px;
    font-family: var(--display);
    font-size: 30px;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -.06em;
}

.brand img {
    width: 32px;
    height: 32px;
    border-radius: 22.5%;
}

/* its letters hop in turn when the app opens, as at the end of getpatois.com */
.brand__word {
    display: inline-flex;
}

.brand__word span {
    display: inline-block;
    animation-delay: .35s;
}

.brand__word span:nth-child(2) { animation-delay: .42s; }
.brand__word span:nth-child(3) { animation-delay: .49s; }
.brand__word span:nth-child(4) { animation-delay: .56s; }
.brand__word span:nth-child(5) { animation-delay: .63s; }
.brand__word span:nth-child(6) { animation-delay: .7s; }

:is(.screen--welcome, .screen--home).is-on .brand__word span {
    animation-name: brand-hop;
    animation-duration: .6s;
    animation-timing-function: cubic-bezier(.3, 1.5, .5, 1);
    animation-fill-mode: both;
}

@keyframes brand-hop {
    40% { translate: 0 -.22em; rotate: -4deg; }
}

@media (prefers-reduced-motion: reduce) {
    .brand__word span { animation: none !important; }
}

.service {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 38px;
    padding: 0 12px 0 7px;
    border: 2px solid var(--ink);
    border-radius: 99px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
}

.service:active {
    background: var(--butter);
}

.service .dot {
    width: 20px;
    height: 20px;
}

.service__chev {
    width: 10px;
    height: 10px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* the empty space above the field: a spinning record and floating notes */
.record {
    display: flex;
    flex: 1;
    align-items: center;
    justify-content: center;
    min-height: 200px;
}

.screen--home .vinyl {
    zoom: 1.2;
}

/* with the keyboard up the page slides under the status bar: only the field stays */
.record,
.top,
.nudge,
.safari-on {
    transition: opacity .2s ease;
}

.is-typing :is(.record, .top, .nudge, .safari-on) {
    opacity: 0;
    pointer-events: none;
}

.is-typing .record {
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.is-typing .record .vinyl {
    display: none !important;
}

@media (max-height: 760px) {
    .vinyl { zoom: .75; }
    .screen--home .vinyl { zoom: .85; }
    .screen--done .vinyl { zoom: .6; }
}



.paste {
    display: grid;
    gap: 14px;
}

.paste label {
    font-family: var(--display);
    font-size: 40px;
    font-weight: 600;
    line-height: 42px;
    letter-spacing: -.04em;
}

.paste__field {
    position: relative;
}

.paste input {
    width: 100%;
    min-height: 56px;
    padding: 0 92px 0 18px;
    border: 3px solid var(--ink);
    border-radius: 99px;
    background: #fff;
    color: var(--ink);
    font: inherit;
    font-size: 16px;
    -webkit-user-select: text;
    cursor: text;
}

.paste input:focus {
    outline: none;
    border-color: var(--blue);
}

.paste__clip {
    position: absolute;
    top: 8px;
    right: 8px;
    bottom: 8px;
    padding: 0 14px;
    border: 0;
    border-radius: 99px;
    background: var(--butter);
    color: var(--ink);
    font: inherit;
    font-size: 15px;
    font-weight: 700;
}

.paste__clip:active {
    background: var(--tomato);
}

.paste .btn {
    min-height: 56px;
}

/* converting: the button turns into a quiet pill, the record does the show */
.paste__busy {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 56px;
    border-radius: 99px;
    background: #fff;
    font-weight: 700;
}

.paste__spin {
    width: 18px;
    height: 18px;
    border: 2.5px solid rgba(20, 17, 15, .15);
    border-top-color: var(--apple-music);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

/* its line is always kept, so an error never moves the screen */
.paste__out {
    min-height: 20px;
    margin-block: -8px !important;
    padding-left: 18px;
    font-size: 15px;
    line-height: 20px;
}

.paste__out.is-error {
    color: #9b1c1c;
}

.has-error input,
.has-error input:focus {
    border-color: #9b1c1c;
}

/* Safari off: one prompt to turn it on, the only thing worth nagging about */
.nudge {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding: 14px 14px 14px 16px;
    border: 2px solid var(--ink);
    border-radius: 20px;
    background: var(--butter);
    box-shadow: 0 4px 0 var(--ink);
    rotate: -1deg;
}

.nudge[hidden],
.safari-on[hidden] {
    display: none;
}

.safari-on {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 24px !important;
    padding: 12px 14px;
    border-radius: 20px;
    background: #ddf7e6;
}

.safari-on__check {
    display: grid;
    flex: none;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--spotify);
}

.safari-on__check svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.safari-on > span:last-child {
    display: grid;
    gap: 1px;
    font-size: 15px;
    line-height: 19px;
}

.safari-on > span:last-child span {
    color: var(--muted);
    font-size: 13px;
    line-height: 17px;
}

.nudge__ico {
    flex: none;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: var(--ink);
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.nudge__ico .nudge__fill {
    fill: var(--ink);
}

.nudge p {
    display: grid;
    flex: 1;
    gap: 2px;
    margin: 0;
}

.nudge b {
    font-family: var(--display);
    font-size: 19px;
    line-height: 21px;
    letter-spacing: -.02em;
}

.nudge p > span {
    color: var(--muted);
    font-size: 13px;
    line-height: 17px;
}

.nudge button {
    flex: none;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 99px;
    background: var(--ink);
    color: #fff;
    font: inherit;
    font-size: 15px;
    font-weight: 700;
    transition: transform .4s cubic-bezier(.3, 1.8, .5, 1);
}

.nudge button:active {
    background: var(--tomato);
    transform: scale(.94);
}

/* overlays: converting away from home, no match */

.overlay {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: flex-end;
    background: rgba(20, 17, 15, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease;
}

.overlay.is-on {
    opacity: 1;
    pointer-events: auto;
}

.overlay--podcast {
    align-items: center;
    justify-content: center;
    background: var(--bg);
    overflow-y: auto;
}

.podcast {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(100%, 390px);
    box-sizing: border-box;
    padding: 24px;
    text-align: center;
}

.podcast__vinyl {
    position: relative;
    flex: none;
    width: 174px;
    height: 143px;
}

.podcast__record {
    position: absolute;
    inset: 0;
    transform-origin: 50% 60%;
    animation: podcast-rock 1.6s ease-in-out infinite;
}

.podcast__vinyl img { position: absolute; }
.podcast__disc { top: 12px; left: 29px; width: 119px; height: 130px; }
.podcast__label { top: 43px; left: 65px; width: 46px; height: 44px; animation: vinyl-spin 1.8s linear infinite; }
.podcast__note { animation: podcast-hop 1.2s ease-in-out infinite; }
.podcast__note--1 { top: 10px; left: 0; width: 33px; height: 33px; }
.podcast__note--2 { top: 0; left: 136px; width: 32px; height: 35px; animation-delay: .2s; }
.podcast__note--3 { top: 98px; left: 140px; width: 34px; height: 40px; animation-delay: .4s; }

@keyframes podcast-rock {
    0%, 100% { transform: rotate(-3deg); }
    50% { transform: rotate(3deg); }
}

@keyframes podcast-hop {
    0%, 60%, 100% { transform: none; }
    30% { transform: translateY(-10px) rotate(6deg); }
}

.podcast__head {
    margin: 28px 0 0;
    font-family: var(--display);
    font-size: 36px;
    font-weight: 600;
    line-height: 1.15;
    letter-spacing: -.04em;
}


.podcast__text {
    margin: 20px 0 0;
    font-size: 17px;
    line-height: 1.35;
}

.podcast__card {
    display: grid;
    gap: 2px;
    box-sizing: border-box;
    width: min(100%, 300px);
    margin-top: 24px;
    padding: 14px 16px;
    border: 2px solid var(--ink);
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 4px 0 var(--ink);
    line-height: 1.25;
    text-align: left;
    rotate: -1deg;
}

.podcast__card b { font-size: 17px; }

.podcast__card small {
    color: rgba(20, 17, 15, .6);
    font-size: 14px;
    font-weight: 500;
}

.podcast__open { width: min(100%, 300px); margin-top: 24px; }

.podcast__close {
    min-height: 44px;
    margin-top: 12px;
    padding: 10px 16px;
    border: 0;
    background: none;
    color: rgba(20, 17, 15, .6);
    font: inherit;
    font-size: 15px;
    font-weight: 600;
    text-decoration: underline;
}

.podcast [hidden] { display: none; }

@media (prefers-reduced-motion: reduce) {
    .podcast__record, .podcast__label, .podcast__note { animation: none; }
}

.overlay--busy {
    align-items: center;
    justify-content: center;
}

.busy {
    display: grid;
    justify-items: center;
    gap: 14px;
    min-width: 180px;
    padding: 28px;
    border-radius: 22px;
    background: #fff;
    font-weight: 700;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(20, 17, 15, .2);
    border-top-color: var(--ink);
    border-radius: 50%;
    animation: spin .8s linear infinite;
}

@keyframes spin {
    to { rotate: 360deg; }
}

.sheet {
    width: 100%;
    padding: 28px 24px calc(env(safe-area-inset-bottom) + 20px);
    border-radius: 32px 32px 0 0;
    background: var(--bg);
    translate: 0 105%;
    transition: translate .35s cubic-bezier(.2, .8, .2, 1);
}

.overlay.is-on .sheet {
    translate: 0 0;
}

.sheet h2 {
    margin: 0 0 10px;
    font-family: var(--display);
    font-size: 32px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -.035em;
}

/* a record with a "?" sticker slapped on it: the song went missing */
.lost {
    position: relative;
    width: 96px;
    height: 105px;   /* the record art's own 199 × 217 */
    margin-bottom: 18px;
}

.lost__disc {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
}

.lost__disc img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* the same record as on home, label laid on its centre */
.lost__disc .lost__label {
    position: absolute;
    top: 23.5%;
    left: 30.2%;
    width: 38.7%;
    height: 33.6%;
}

.lost__tag {
    position: absolute;
    top: -6px;
    right: -14px;
    display: grid;
    place-items: center;
    width: 38px;
    height: 38px;
    border: 3px solid var(--ink);
    border-radius: 12px;
    background: var(--butter);
    color: var(--ink);
    font-family: var(--display);
    font-size: 22px;
    font-weight: 800;
    rotate: 12deg;
}

.overlay.is-on .lost__disc { animation: wobble 2.4s ease-in-out .4s infinite; }
.overlay.is-on .lost__tag { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) .3s both; }

@keyframes wobble {
    50% { rotate: -14deg; }
}

.sheet p {
    margin: 0;
}

@media (prefers-reduced-motion: reduce) {
    .screen, .overlay, .sheet, .opt, .opt__check svg, .btn--bouncy {
        transition: none;
    }

    .platform-ios *,
    .platform-ios *::before {
        animation: none !important;
    }

    /* keep a spinner turning so converting still reads as busy */
    .platform-ios .spinner,
    .platform-ios .paste__spin {
        animation: spin .8s linear infinite !important;
    }

    /* no loop to watch: the welcome chat rests on its result */
    .chat__card--from,
    .chat__typing {
        visibility: hidden;
    }

    .chat__card--to,
    .chat__msg--out {
        opacity: 1;
    }

    .platform-mac *,
    .platform-mac *::before {
        animation: none !important;
    }
}

/* iPad: the phone's column, centred, so buttons and banners keep their shape */
@media (min-width: 600px) {
    .screen {
        padding-inline: calc(50vw - 240px);
    }

    .overlay {
        justify-content: center;
    }

    .sheet {
        max-width: 560px;
    }
}

/* macOS */

.platform-mac {
    display: flex;
    flex-direction: column;
    align-items: center;
}

body.platform-mac {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 40px;
    background: var(--bg);
    color: var(--ink);
    font: -apple-system-short-body;
    text-align: center;
}

body.platform-mac h1 {
    margin: 18px 0 0;
    font-family: var(--display);
    font-size: 34px;
    font-weight: 600;
    line-height: 38px;
    letter-spacing: -.04em;
}

body.platform-mac p {
    max-width: 26em;
    margin: 8px 0 0;
    color: var(--muted);
    font-size: 15px;
}

body.platform-mac .working {
    margin-top: 14px !important;
    color: var(--ink);
    font-size: 14px;
}

.platform-mac .vinyl {
    zoom: .8;
    animation: none;
}

.platform-mac .talk__vinyl {
    zoom: .6;
}

.platform-mac .vinyl__disc {
    animation: vinyl-drop 1.6s cubic-bezier(.2, 1.2, .4, 1) both;
}

.platform-mac .vinyl__note {
    animation: note-pop .9s cubic-bezier(.2, 1.5, .4, 1) .5s both;
}

/* off: a note can't make it from Safari to your app until Patois is switched on */
.journey {
    position: relative;
    width: 342px;
    height: 150px;
}

.journey__path {
    position: absolute;
    inset: 0;
    fill: none;
    stroke: rgba(20, 17, 15, .25);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-dasharray: 2 10;
    animation: dash 3s linear infinite;
}

.journey__tile {
    position: absolute;
    top: 60px;
    display: grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 6px 16px rgba(20, 17, 15, .08);
}

.journey__tile--safari { left: 16px; }
.journey__tile--music { left: 254px; animation: land 7s ease-in-out .8s infinite; }

.journey__tile svg,
.journey__tile img {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

.compass { fill: #1a8cff; }
.compass__ticks { fill: none; stroke: rgba(255, 255, 255, .7); stroke-width: 1.4; stroke-dasharray: 1.2 3.1; }
.compass__red { fill: #ff3b30; }
.compass__white { fill: #fff; }

.compass__needle {
    transform-origin: 22px 22px;
    animation: needle 5s ease-in-out infinite;
}

.journey__switch {
    position: absolute;
    top: 96px;
    left: 145px;
    width: 52px;
    height: 32px;
    border-radius: 99px;
    background: #d9d2c4;
    animation: journey-track 7s ease-in-out .8s infinite;
}

.journey__switch span {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, .2);
    animation: journey-knob 7s ease-in-out .8s infinite;
}

.journey__name {
    position: absolute;
    top: 132px;
    right: 0;
    left: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.journey__note {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    offset-path: path("M60 66 Q171 -14 282 66");
    offset-rotate: 0deg;
    opacity: 0;
    animation: journey-fly 7s ease-in-out .8s infinite;
}

@keyframes needle {
    0%, 100% { transform: rotate(-24deg); }
    50% { transform: rotate(28deg); }
}

@keyframes journey-track {
    0%, 14%, 100% { background: #d9d2c4; }
    24%, 92% { background: var(--spotify); }
}

@keyframes journey-knob {
    0%, 14%, 100% { transform: none; }
    24%, 92% { transform: translateX(20px); }
}

@keyframes journey-fly {
    0%, 30% { offset-distance: 0%; opacity: 0; }
    34% { opacity: 1; }
    68% { offset-distance: 100%; opacity: 1; }
    74%, 100% { offset-distance: 100%; opacity: 0; }
}

@keyframes land {
    0%, 66%, 100% { transform: none; }
    72% { transform: scale(1.16) rotate(-6deg); }
    80% { transform: scale(.96); }
}

.mac__how {
    display: grid;
    gap: 14px;
    margin: 26px 0 0;
    padding: 0;
    list-style: none;
    counter-reset: how;
    font-size: 15px;
    text-align: left;
}

.mac__how li {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.mac__how li > span {
    padding-top: 3px;
}

.mac__how li::before {
    counter-increment: how;
    content: counter(how);
    display: grid;
    place-items: center;
    flex: none;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: var(--lilac);
    font-size: 13px;
    font-weight: 700;
}

/* a Mac checkbox that ticks itself, next to "Tick Patois" */
.tick {
    display: inline-grid;
    place-items: center;
    width: 17px;
    height: 17px;
    margin-left: 6px;
    vertical-align: -3px;
    border: 1.5px solid rgba(20, 17, 15, .35);
    border-radius: 4px;
    background: #fff;
}

.tick svg {
    width: 11px;
    height: 11px;
    fill: none;
    stroke: var(--blue);
    stroke-width: 2.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    animation: tick 4s ease-in-out 1s infinite;
}

@keyframes tick {
    0%, 20%, 95%, 100% { opacity: 0; transform: scale(.4); }
    30%, 85% { opacity: 1; transform: none; }
}

body.platform-mac button {
    margin-top: 30px;
    padding: 12px 26px;
    border: none;
    border-radius: 99px;
    background: var(--ink);
    color: #fff;
    font-size: 1em;
    font-weight: 700;
    transition: transform .4s cubic-bezier(.3, 1.8, .5, 1);
}

body.platform-mac button:hover {
    transform: translateY(-2px);
}

body.platform-mac button:active {
    background: var(--tomato);
    color: var(--ink);
    transform: scale(.94);
}

body.platform-mac .mac__change {
    margin-top: 0;
}

body.platform-mac .open-preferences--quiet {
    margin-top: 18px;
    padding: 8px 14px;
    background: transparent;
    color: var(--blue);
}

body.platform-mac [data-when] {
    display: none;
}

body.is-on [data-when~="on"],
body.is-off [data-when~="off"],
body.is-unknown [data-when~="unknown"] {
    display: revert;
}

body.is-off .mac__how,
body.is-unknown .mac__how {
    display: grid;
}

body.is-on .working {
    display: inline-flex;
}
