/* ==========================================================================================================
   The one-page story: a real-looking iPhone shows Lull from the first text to the app on the Home Screen, in about a
   minute, and the visitor can type their own answer into it. Four steps beside the phone say where the story is and
   jump there when tapped (story.js). Everything inside the phone is drawn in HTML, at the phone's own scale (em, from
   .ph-screen's font-size), so it stays sharp at any size; the app screens use the app's own colours and type.
   ========================================================================================================== */

@font-face { font-family: "Lull Sans"; src: url("/dmsans.woff2") format("woff2"); font-weight: 100 1000; font-display: swap; }

/* ---------- the page around the phone ---------- */
/* The story told in four big lines beside the phone. The line the phone is on fills with ink, slowly, as it plays; the
   ones before it stay inked, the ones after it wait faint. Under them, the Text Lull button and one row of facts. */
@property --p { syntax: "<percentage>"; inherits: true; initial-value: 0%; }
.st-stage { grid-template-areas: "left phone"; }
.st-col { grid-area: left; align-self: center; }
.st-stage > .st-phone { grid-area: phone; align-self: center; }
/* what Lull is, beside the logo in the top bar (a tagline, not part of the story), after a thin divider */
/* two short rows, together the logo's height, so the logo and the tagline read as one lockup */
.st-tag { margin: 0 0 0 14px; padding-left: 14px; border-left: 1px solid var(--line-2, rgba(0, 0, 0, 0.2)); font: 500 13px/1.18 var(--text); color: var(--muted, var(--ink-2)); white-space: nowrap; transition: opacity 0.3s ease; }
.st-tag-long b { display: block; font-weight: inherit; }
.st-tag-short { display: none; }
/* the home page's top bar is just the logo, the tagline and Sign in: the language, Pricing and How it works are in the
   footer (the language chip lang-pick.js adds to the bar stays out of it here) */
.lp-bar .lang-chip.in-bar { display: none; }
/* the top bar's scrolled pill is narrow: the tagline steps out of it */
.lp-bar.glass .st-tag { display: none; }
@media (max-width: 900px) {
  .st-tag { margin-left: 10px; padding-left: 10px; font-size: 13px; }
  .st-tag-long { display: none; }
  .st-tag-short { display: inline; }
}
.st-sr { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Only the line the phone is on is big; a soft gold highlight sweeps behind it, like a marker stroke, as that part
   plays (and runs on to the next row when the line wraps). The lines already told turn small and quiet; the ones to
   come wait small and faint. */
.st-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; align-content: start; font-size: clamp(30px, 2.9vw, 42px); max-width: 15em;
  /* room for three small lines and a big one on two rows, so nothing below moves as the big line changes */
  min-height: calc(4.1em + 42px); }
.st-step {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer; text-align: start; color: inherit;
  font: 600 0.44em/1.3 var(--font); transition: opacity 0.4s ease;
  opacity: 0.45; text-wrap: balance;
}
.st-step:hover { opacity: 0.75; }
/* moving to the next line: each line glides to its new place and size (story.js) */
.st-step { will-change: transform; }
.st-step:focus-visible { outline: 2px solid var(--ink); outline-offset: 6px; border-radius: 8px; }
.st-step[aria-current="step"] { font-size: 1em; font-weight: 700; line-height: 1.16; letter-spacing: -0.015em; opacity: 1; }
/* told already: a little stronger than the ones still to come, nothing more */
.st-steps li:has(~ li .st-step[aria-current="step"]) .st-step { opacity: 0.62; }
.st-tell {
  color: var(--ink); text-wrap: balance;
  /* the highlight: a gold stroke under the lower part of the letters, as far as the story has played, with a soft
     leading edge (it fades in over its last 1.2em, so it glides rather than wipes). On a wrapped line it runs along
     the first row, then on into the second. */
  background: linear-gradient(90deg, var(--gold) calc(var(--p, 0%) - 1.2em), transparent var(--p, 0%)) no-repeat 0 var(--band-at) / 100% var(--band);
}
.st-step:not([aria-current="step"]) .st-tell { background: none; }
/* light: a wide, soft marker; dark: a thinner, richer stroke lower down (a wide band behind light text goes muddy) */
:root { --gold: rgba(233, 196, 118, 0.55); --gold-ink: #b88a2e; --band: 40%; --band-at: 88%; }
@media (prefers-color-scheme: dark) { :root { --gold: rgba(230, 182, 96, 0.5); --gold-ink: #dcb468; --band: 30%; --band-at: 92%; } }

.st-act { margin-top: 38px; }
.st-act .lp-cta-row { margin-top: 0; }
/* the facts, in two aligned columns: what it costs, and where it works */
.st-facts { margin: 22px 0 0; display: grid; grid-template-columns: repeat(2, max-content); column-gap: 40px; font: 14px/1.35 var(--text); }
.st-facts div { display: grid; gap: 2px; }
.st-facts dt { font-weight: 600; color: var(--ink); }
.st-facts dd { margin: 0; color: var(--ink-2); }

/* ---------- the phone: its screens ---------- */
/* The camera: soft at both ends (ease in and out), slow and unhurried (0.95s in, 0.85s back), one move at a time. */
.st-phone { position: relative; transform-origin: 0 0; transition: transform 0.85s cubic-bezier(0.45, 0.05, 0.25, 1); will-change: transform; backface-visibility: hidden; }
.st-phone.zoomed { transition: transform 0.95s cubic-bezier(0.45, 0.05, 0.25, 1); }
/* moved in close: above everything beside it, so the words never sit on top of the phone; the top bar gets a frosted
   backing meanwhile, so the phone passes under it cleanly */
.st-phone.zoomed { z-index: 20; }
.lp-bar { transition: padding 0.4s ease, background-color 0.5s ease, -webkit-backdrop-filter 0.5s ease, backdrop-filter 0.5s ease; }
.lp-bar.st-over { background-color: color-mix(in srgb, var(--bg, #faf9f5) 78%, transparent); -webkit-backdrop-filter: blur(18px) saturate(1.4); backdrop-filter: blur(18px) saturate(1.4); }
@media (prefers-reduced-motion: reduce) { .st-phone { transition: none; } }
/* Clipped to its rounded shape directly: rounded corners alone stop clipping the sliding panels while the phone is
   zoomed, and a square corner of the Add to Home Screen panel showed past the frame. */
.st-phone .ph-screen { background: #000; clip-path: inset(0 round calc(var(--h) * 0.0945)); }
.st-phone .sb, .st-phone .home-ind { animation: none !important; transition: color 0.4s ease, background 0.4s ease; }
.st-phone[data-dark] .sb { color: #fff; }
.st-phone[data-dark] .home-ind { background: rgba(255, 255, 255, 0.85); }
.st-scr { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 0.65s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s linear 0.8s; }
.st-scr.on { opacity: 1; visibility: visible; transition: opacity 0.65s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), visibility 0s; }

/* ---------- Messages, dark, on Lull's painted night ---------- */
.st-msgs { background: #0f1a2b url("story-night.jpg") center / cover; color: #fff; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; display: flex; flex-direction: column; }
.st-msgs.away { transform: translateX(-28%); }
.st-head { position: relative; padding: 3.9em 1em 0.7em; display: flex; flex-direction: column; align-items: center; gap: 0.3em; }
.st-head .st-back { position: absolute; left: 0.85em; top: 4.9em; height: 2.2em; padding: 0 0.75em 0 0.6em; border-radius: 999px; display: flex; align-items: center; gap: 0.35em; background: rgba(60, 70, 96, 0.55); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.85em; font-weight: 600; }
.st-head .st-back svg { width: 0.55em; height: 0.95em; }
.st-avatar { width: 3.1em; height: 3.1em; border-radius: 50%; background: linear-gradient(150deg, #c7a6f2, #8fb5f3 45%, #f0a9c9); display: grid; place-items: center; box-shadow: 0 0.2em 0.8em rgba(0, 0, 0, 0.35); }
.st-avatar svg { width: 1.7em; height: 1.7em; }
.st-name { margin-top: -0.35em; padding: 0.25em 0.8em; border-radius: 999px; font-size: 0.82em; font-weight: 600; background: rgba(60, 70, 96, 0.55); border: 1px solid rgba(255, 255, 255, 0.12); }
.st-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-start; gap: 0.4em; padding: 0.6em 0.85em 0.5em; }
/* nothing in the conversation ever squeezes: older messages scroll up out of view instead, as in Messages */
.st-body > * { flex-shrink: 0; }
.st-stamp, .st-sys { align-self: center; font-size: 0.66em; color: rgba(255, 255, 255, 0.78); margin: 0.3em 0; text-align: center; animation: st-fade 0.6s ease both; }
.st-stamp b, .st-sys b { font-weight: 600; }
.st-b { position: relative; max-width: 78%; padding: 0.45em 0.8em 0.5em; border-radius: 1.15em; font-size: 0.92em; line-height: 1.3; animation: st-pop 0.5s cubic-bezier(0.25, 0.6, 0.3, 1) both; overflow-wrap: anywhere; }
.st-b.in { align-self: flex-start; background: rgba(38, 41, 52, 0.94); }
.st-b.out { align-self: flex-end; background: #0a7aff; margin-top: 0.7em; }
.st-read { align-self: flex-end; font-size: 0.62em; color: rgba(255, 255, 255, 0.78); margin: -0.1em 0.2em 0.2em; animation: st-fade 0.5s ease both; }
.st-read b { font-weight: 600; }
.st-heart { position: absolute; left: -1.25em; top: -1.15em; width: 1.75em; height: 1.75em; border-radius: 50%; display: grid; place-items: center; background: rgba(66, 72, 90, 0.98); border: 0.12em solid rgba(15, 22, 36, 0.9); animation: st-heart 0.55s cubic-bezier(0.3, 0.7, 0.3, 1.08) both; }
.st-heart svg { width: 0.9em; height: 0.9em; }
.st-typing { align-self: flex-start; display: flex; gap: 0.25em; padding: 0.7em 0.8em; border-radius: 1em; background: rgba(38, 41, 52, 0.94); animation: st-pop 0.45s cubic-bezier(0.25, 0.6, 0.3, 1) both; }
.st-typing i { width: 0.45em; height: 0.45em; border-radius: 50%; background: rgba(255, 255, 255, 0.55); animation: st-dot 1.2s ease-in-out infinite; }
.st-typing i:nth-child(2) { animation-delay: 0.18s; }
.st-typing i:nth-child(3) { animation-delay: 0.36s; }
/* tonight's link, as Messages shows a link with its preview */
.st-link { align-self: flex-start; width: 74%; border-radius: 1.1em; overflow: hidden; background: rgba(38, 41, 52, 0.96); animation: st-pop 0.6s cubic-bezier(0.25, 0.6, 0.3, 1) both; position: relative; }
.st-link img { display: block; width: 100%; aspect-ratio: 1.55; object-fit: cover; }
.st-link .st-lt { padding: 0.55em 0.8em 0.65em; display: grid; gap: 0.12em; }
.st-link .st-lt b { font-size: 0.85em; font-weight: 600; line-height: 1.25; }
.st-link .st-lt span { font-size: 0.7em; color: rgba(255, 255, 255, 0.6); }
.st-making { align-self: flex-start; display: flex; align-items: center; gap: 0.55em; padding: 0.5em 0.85em; border-radius: 1.1em; background: rgba(38, 41, 52, 0.94); font-size: 0.8em; color: rgba(255, 255, 255, 0.8); animation: st-pop 0.5s cubic-bezier(0.25, 0.6, 0.3, 1) both; }
.st-making i { width: 0.9em; height: 0.9em; border-radius: 50%; border: 0.14em solid rgba(255, 255, 255, 0.25); border-top-color: #fff; animation: st-spin 0.9s linear infinite; }
/* the + / iMessage / mic bar: the field is a real text box */
.st-bar { display: flex; align-items: center; gap: 0.5em; padding: 0.45em 0.75em 2.2em; }
.st-plus { width: 2.15em; height: 2.15em; flex: none; border-radius: 50%; display: grid; place-items: center; background: rgba(60, 70, 96, 0.6); border: 1px solid rgba(255, 255, 255, 0.12); }
.st-plus svg { width: 0.95em; height: 0.95em; }
.st-field { flex: 1; min-width: 0; height: 2.15em; border-radius: 999px; display: flex; align-items: center; padding: 0 0.3em 0 0.9em; background: rgba(60, 70, 96, 0.6); border: 1px solid rgba(255, 255, 255, 0.14); transition: border-color 0.3s ease, box-shadow 0.3s ease; }
/* 16px in the page, so a phone never zooms in when it's tapped; scaled down to the phone's own size */
.st-input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #fff; padding: 0;
  font: 16px/1.2 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif;
  transform-origin: left center; transform: scale(var(--k, 0.8)); width: calc(100% / var(--k, 0.8)); caret-color: transparent; pointer-events: none;
}
.st-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.st-send { flex: none; width: 0; height: 1.7em; overflow: hidden; border-radius: 50%; border: 0; padding: 0; display: grid; place-items: center; background: #0a7aff; color: #fff; cursor: pointer; opacity: 0; transform: scale(0.6); transition: opacity 0.2s ease, transform 0.2s ease, width 0.2s ease; }
.st-send svg { width: 0.85em; height: 0.85em; }
.st-field.has .st-send { width: 1.7em; opacity: 1; transform: none; }

/* ---------- tonight's meditation, opened from the link (the web player, in Safari) ---------- */
.st-player { background: #1e1d1b; color: #f4f3ee; font-family: "Lull Sans", -apple-system, system-ui, sans-serif; display: flex; flex-direction: column; padding: 4.2em 1.45em 0; transform: translateX(30%); }
.st-player.on { transform: none; }
.st-ptop { display: flex; justify-content: space-between; }
.st-ptop span { width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; background: #30302e; }
.st-ptop svg { width: 0.9em; height: 0.9em; }
.st-cover { margin: 1.1em auto 0; width: 88%; aspect-ratio: 1; border-radius: 1.3em; overflow: hidden; box-shadow: 0 1.2em 2.6em rgba(0, 0, 0, 0.45); }
.st-cover img { width: 100%; height: 100%; object-fit: cover; display: block; transform: scale(1.04); animation: st-breathe 9s ease-in-out infinite alternate; }
.st-ptitle { margin: 1.25em 0 0; font-size: 1.22em; font-weight: 500; line-height: 1.25; }
.st-psub { margin: 0.2em 0 0; font-size: 0.85em; color: rgba(244, 243, 238, 0.6); }
.st-prog { margin-top: 1.2em; height: 0.28em; border-radius: 999px; background: #3a3936; overflow: hidden; }
.st-prog i { display: block; height: 100%; width: var(--pp, 2%); background: #f4f3ee; border-radius: inherit; transition: width 1s linear; }
.st-ptimes { display: flex; justify-content: space-between; margin-top: 0.45em; font-size: 0.66em; color: rgba(244, 243, 238, 0.6); font-variant-numeric: tabular-nums; }
.st-pctrl { display: flex; align-items: center; justify-content: center; gap: 2.2em; margin-top: 1.1em; }
.st-pctrl span { width: 2.6em; height: 2.6em; border-radius: 50%; display: grid; place-items: center; background: #30302e; }
.st-pctrl span svg { width: 1em; height: 1em; }
.st-pctrl .st-play { width: 4.1em; height: 4.1em; background: #f4f3ee; color: #1e1d1b; }
.st-pctrl .st-play svg { width: 1.45em; height: 1.45em; }
.st-play .st-ic-play { display: none; }
.st-player.paused .st-play .st-ic-play { display: block; }
.st-player.paused .st-play .st-ic-pause { display: none; }
/* a line of what Maya is saying, soft, under the controls */
.st-line { margin: 1.2em 0 0; min-height: 2.6em; text-align: center; font-size: 0.82em; line-height: 1.4; font-style: italic; color: rgba(244, 243, 238, 0.7); transition: opacity 0.6s ease; }
.st-line.out { opacity: 0; }
/* Safari's bar, at the bottom: the address and the Share button */
.st-safari { position: absolute; left: 0; right: 0; bottom: 0; padding: 0.55em 0.9em 2.2em; display: flex; align-items: center; gap: 0.6em; background: rgba(30, 29, 27, 0.92); }
.st-safari .st-url { flex: 1; height: 2.3em; border-radius: 999px; display: flex; align-items: center; justify-content: center; gap: 0.4em; background: #30302e; font-family: -apple-system, system-ui, sans-serif; font-size: 0.78em; color: rgba(244, 243, 238, 0.85); }
.st-safari .st-url svg { width: 0.75em; height: 0.75em; opacity: 0.7; }
.st-safari > span { width: 2.3em; height: 2.3em; border-radius: 50%; display: grid; place-items: center; background: #30302e; }
.st-safari > span svg { width: 1em; height: 1em; }

/* ---------- Share, then Add to Home Screen ---------- */
.st-sheet { position: absolute; left: 0.4em; right: 0.4em; bottom: 0.4em; z-index: 4; border-radius: 1.9em; background: #2a2a2c; color: #fff; font-family: -apple-system, system-ui, sans-serif; padding: 0.6em 0.9em 1.6em; transform: translateY(110%); transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1); }
.st-sheet.on { transform: none; }
.st-grab { width: 2.6em; height: 0.3em; border-radius: 999px; background: rgba(255, 255, 255, 0.3); margin: 0 auto 0.8em; }
.st-share-head { display: flex; align-items: center; gap: 0.7em; padding-bottom: 0.8em; border-bottom: 1px solid rgba(255, 255, 255, 0.1); }
.st-share-head img { width: 2.6em; height: 2.6em; border-radius: 0.6em; }
.st-share-head b { display: block; font-size: 0.85em; font-weight: 600; }
.st-share-head span { font-size: 0.7em; color: rgba(255, 255, 255, 0.55); }
.st-rows { margin-top: 0.8em; border-radius: 0.9em; overflow: hidden; background: #3a3a3c; }
.st-row { display: flex; align-items: center; justify-content: space-between; padding: 0.7em 0.9em; font-size: 0.85em; border-bottom: 1px solid rgba(255, 255, 255, 0.08); transition: background 0.2s ease; }
.st-row:last-child { border-bottom: 0; }
.st-row svg { width: 1.15em; height: 1.15em; opacity: 0.9; }
.st-row.hit { background: rgba(255, 255, 255, 0.16); }
.st-add { position: absolute; inset: 0; z-index: 5; background: #1c1c1e; color: #fff; font-family: -apple-system, system-ui, sans-serif; padding: 4.1em 1em 0; transform: translateY(100%); transition: transform 0.65s cubic-bezier(0.2, 0.8, 0.2, 1); }
.st-add.on { transform: none; }
.st-add-top { display: flex; align-items: center; justify-content: space-between; font-size: 0.85em; }
.st-add-top b { font-weight: 600; }
.st-add-top span { color: #0a84ff; }
.st-add-top .st-addbtn { font-weight: 600; padding: 0.2em 0.4em; border-radius: 0.4em; transition: background 0.2s ease; }
.st-add-top .st-addbtn.hit { background: rgba(10, 132, 255, 0.25); }
.st-add-card { margin-top: 1.4em; display: flex; gap: 0.9em; align-items: center; padding: 0.8em; border-radius: 0.9em; background: #2c2c2e; }
.st-add-card img { width: 3.6em; height: 3.6em; border-radius: 0.85em; }
.st-add-card div { flex: 1; display: grid; gap: 0.35em; }
.st-add-card b { font-size: 0.9em; font-weight: 500; padding-bottom: 0.35em; border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
.st-add-card span { font-size: 0.72em; color: rgba(255, 255, 255, 0.5); }
.st-add p { margin: 0.8em 0.4em 0; font-size: 0.68em; line-height: 1.4; color: rgba(255, 255, 255, 0.5); }

/* ---------- the Home Screen ---------- */
.st-home { background: radial-gradient(90% 60% at 20% 15%, #3b3f78 0%, rgba(59, 63, 120, 0) 70%), radial-gradient(80% 60% at 85% 85%, #6b4a7e 0%, rgba(107, 74, 126, 0) 70%), linear-gradient(180deg, #1b1d3a, #2a2347); font-family: -apple-system, system-ui, sans-serif; color: #fff; padding: 5em 1.35em 0; }
.st-grid { display: grid; grid-template-columns: repeat(4, 1fr); row-gap: 1.15em; column-gap: 0.9em; }
.st-app { display: grid; justify-items: center; gap: 0.3em; font-size: 0.62em; color: rgba(255, 255, 255, 0.92); }
.st-app i { width: 100%; aspect-ratio: 1; border-radius: 23%; display: block; background: var(--c, #555); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.st-app.lull i { background: url("apple-touch-icon.png") center / cover; }
.st-app.lull { opacity: 0; transform: scale(0.3); }
.st-home.landed .st-app.lull { animation: st-land 0.8s cubic-bezier(0.3, 0.7, 0.3, 1.1) forwards; }
.st-app.lull.hit i { filter: brightness(0.7); }
.st-dock { position: absolute; left: 0.7em; right: 0.7em; bottom: 1.6em; padding: 0.75em; border-radius: 1.9em; background: rgba(255, 255, 255, 0.16); display: grid; grid-template-columns: repeat(4, 1fr); gap: 0.9em; }
.st-dock i { aspect-ratio: 1; border-radius: 23%; background: var(--c, #555); display: block; }
.st-dots { position: absolute; left: 0; right: 0; bottom: 7.6em; display: flex; justify-content: center; gap: 0.4em; }
.st-dots i { width: 0.42em; height: 0.42em; border-radius: 50%; background: rgba(255, 255, 255, 0.35); }
.st-dots i:first-child { background: #fff; }

/* ---------- the Lull app (Tonight, then This week) ---------- */
.st-app-scr { background: #1f1e1c; color: #f4f3ee; font-family: "Lull Sans", -apple-system, system-ui, sans-serif; transform: scale(0.2); transform-origin: var(--ox, 30%) var(--oy, 40%); border-radius: 2em; overflow: hidden; }
.st-app-scr.on { transform: none; border-radius: 0; }
.st-splash { position: absolute; inset: 0; z-index: 3; display: grid; place-items: center; background: #1f1e1c; transition: opacity 0.5s ease 0.6s; }
.st-splash svg { width: 3.6em; height: 3.6em; }
.st-app-scr.on .st-splash { opacity: 0; }
.st-pane { position: absolute; inset: 0; padding: 4.6em 1.25em 0; transition: transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1), opacity 0.4s ease; }
.st-pane.week { transform: translateX(100%); opacity: 0; }
.st-app-scr.wk .st-pane.tonight { transform: translateX(-30%); opacity: 0; }
.st-app-scr.wk .st-pane.week { transform: none; opacity: 1; }
.st-k { margin: 0; font-size: 0.66em; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(244, 243, 238, 0.62); }
.st-h { margin: 0.3em 0 0; font-size: 1.6em; font-weight: 500; letter-spacing: -0.01em; }
.st-p { margin: 0.45em 0 0; font-size: 0.8em; line-height: 1.45; color: rgba(244, 243, 238, 0.8); }
.st-tcard { margin-top: 1.1em; border-radius: 1.3em; padding: 0.55em; background: #2a2927; border: 1px solid rgba(255, 255, 255, 0.06); }
.st-tcard img { display: block; width: 100%; aspect-ratio: 1.3; object-fit: cover; border-radius: 0.95em; }
.st-tmeta { display: flex; align-items: center; justify-content: space-between; gap: 0.8em; padding: 0.7em 0.45em 0.4em; }
.st-tmeta div > span { font-size: 0.66em; color: rgba(244, 243, 238, 0.6); }
.st-tmeta b { display: block; margin-top: 0.15em; font-size: 1.05em; font-weight: 500; line-height: 1.25; }
.st-tmeta em { display: block; margin-top: 0.3em; font-style: normal; font-size: 0.66em; color: rgba(244, 243, 238, 0.6); }
.st-tplay { flex: none; width: 2.8em; height: 2.8em; border-radius: 50%; display: grid; place-items: center; background: #f4f3ee; color: #1f1e1c; }
.st-tplay svg { width: 1em; height: 1em; }
.st-tabs { display: flex; gap: 0.5em; margin-top: 0.9em; }
.st-tabs span { padding: 0.45em 0.9em; border-radius: 999px; font-size: 0.72em; background: #30302e; }
.st-tabs span:first-child { background: #f4f3ee; color: #1f1e1c; }
.st-list { margin-top: 0.9em; display: grid; gap: 0.15em; }
.st-li { display: grid; grid-template-columns: 3em 1fr 2em; gap: 0.75em; align-items: center; padding: 0.55em 0; border-bottom: 1px solid rgba(255, 255, 255, 0.07); }
.st-li img { width: 3em; height: 3em; border-radius: 0.6em; object-fit: cover; display: block; }
.st-li span { font-size: 0.6em; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(244, 243, 238, 0.55); }
.st-li b { display: block; font-size: 0.82em; font-weight: 500; margin-top: 0.15em; }
.st-li em { display: block; font-style: normal; font-size: 0.64em; color: rgba(244, 243, 238, 0.55); margin-top: 0.15em; }
.st-li i { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; background: #30302e; }
.st-li i svg { width: 0.75em; height: 0.75em; }
.st-li.saved b::after { content: " ♡"; color: rgba(244, 243, 238, 0.6); }
.st-tabbar { position: absolute; left: 0.8em; right: 0.8em; bottom: 1.6em; z-index: 2; display: grid; grid-template-columns: repeat(3, 1fr); padding: 0.35em; border-radius: 999px; background: rgba(48, 48, 46, 0.92); border: 1px solid rgba(255, 255, 255, 0.08); }
.st-tabbar > span { display: grid; justify-items: center; gap: 0.15em; padding: 0.4em 0; border-radius: 999px; font-size: 0.58em; color: rgba(244, 243, 238, 0.7); transition: background 0.3s ease, color 0.3s ease; }
.st-tabbar > span svg { width: 1.6em; height: 1.6em; }
.st-tabbar > span.on { background: rgba(255, 255, 255, 0.12); color: #fff; }

/* ---------- a finger's tap ---------- */
.st-tap { position: absolute; z-index: 9; width: 2.6em; height: 2.6em; margin: -1.3em 0 0 -1.3em; border-radius: 50%; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 0 0.15em rgba(255, 255, 255, 0.3); pointer-events: none; opacity: 0; }
.st-tap.go { animation: st-tap 0.65s ease-out both; }

/* ---------- motion ---------- */
@keyframes st-pop { from { opacity: 0; transform: translateY(0.4em) scale(0.985); } }
@keyframes st-fade { from { opacity: 0; } }
@keyframes st-heart { from { opacity: 0; transform: scale(0.5); } }
@keyframes st-dot { 0%, 60%, 100% { opacity: 0.35; transform: none; } 30% { opacity: 1; transform: translateY(-0.12em); } }
@keyframes st-spin { to { transform: rotate(360deg); } }
@keyframes st-breathe { to { transform: scale(1.12); } }
@keyframes st-land { to { opacity: 1; transform: none; } }
@keyframes st-tap { 0% { opacity: 0; transform: scale(1.4); } 30% { opacity: 1; transform: scale(0.85); } 100% { opacity: 0; transform: scale(1); } }

@media (prefers-reduced-motion: reduce) {
  .st-scr, .st-scr.on, .st-sheet, .st-add, .st-pane { transition: none; }
  .st-b, .st-link, .st-typing, .st-making, .st-heart, .st-read { animation: none; }
  .st-cover img { animation: none; }
  .st-home .st-app.lull { opacity: 1; transform: none; animation: none; }
}

/* ---------- phones: the line it's on, then the phone as big as the screen allows; Text Lull lives in the top bar ---------- */
.st-foot-signin { display: none; }
@media (max-width: 900px) {
  .st-col { display: contents; }
  .st-steps { order: 1; font-size: clamp(26px, 7.4vw, 34px); max-width: none; min-height: 2.4em; align-content: start; }
  .st-steps li:not(:has(.st-step[aria-current="step"])) { display: none; }
  /* the phone: what's left of the screen under the top bar and the line, up to the screen's width */
  .st-stage > .st-phone { order: 2; align-self: center; margin-top: 14px; --h: min(calc(100svh - 190px), calc((100vw - 40px) / 0.478), 760px); }
  /* The first screen is only the line and the phone. The facts wait below it, out of sight: Safari's bar floats over
     the bottom of the page, so anything just under the phone would show through it. The gap is the difference between
     the screen with Safari's bars shown and hidden (100lvh - 100svh), plus some air. */
  .st-act { order: 3; margin-top: max(96px, calc(100lvh - 100svh + 64px)); text-align: center; }
  .st-act .lp-cta-row { display: none; }
  /* the facts, centered, as two even halves with a hairline between them */
  .st-act .st-facts { margin: 0 auto; max-width: 400px; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 0; }
  .st-facts div { gap: 4px; padding: 2px 14px; align-content: start; }
  .st-facts div + div { border-inline-start: 1px solid var(--line); }
  .st-facts dt { font-size: 15px; }
  .st-facts dd { font-size: 13.5px; color: var(--muted); text-wrap: balance; }
  /* below them: the note, then the links, then the language on a line of its own */
  .lp-note { margin-top: 36px; font-size: 13px; }
  /* narrow enough that the links fall into two even rows (four, then three), never one left alone */
  .lp-foot { max-width: 340px; padding-top: 18px; column-gap: 18px; font-size: 14px; }
  .lp-foot::before { content: ""; order: 98; flex-basis: 100%; height: 10px; }
  .lp-foot .lang-chip { order: 99; }
  /* the top bar: the moon, "AI sleep companion", and Text Lull (Sign in is in the footer on phones) */
  .lp-bar .lp-nav { display: none; }
  /* a small copy of the big Text Lull button: a rounded rectangle whose corners follow the icon's (outer radius = the
     icon's radius + the 6px around it), not a pill around a square icon */
  .lp-bar .lp-bar-cta {
    display: inline-flex; align-items: center; gap: 7px; margin-inline-start: auto; height: 34px; max-width: none; opacity: 1; pointer-events: auto;
    padding: 0 12px 0 6px; border: 0; border-radius: 11px; background: var(--ink); color: var(--on-ink); font: 600 14.5px/1 var(--text); white-space: nowrap; cursor: pointer;
  }
  .lp-bar .lp-bar-cta::before { content: ""; width: 22px; height: 22px; border-radius: 5px; background: url("messages-icon.png") center / cover; }
  .st-foot-signin { display: inline; }
  /* no second Text Lull sliding up from the bottom: the one in the top bar is always there */
  .lp-dock { display: none !important; }
}

/* ---------- the first moments on the page ----------
   Nothing pops. The top bar and the four lines fade in quietly (all small: the whole story at a glance), then the phone
   settles in, resting on Lull's night, then the button and the facts. Only once all is still (story.js: about 2.6s)
   does the first line glide into the big spot and Lull start typing. */
@keyframes st-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes st-arrive { from { opacity: 0; transform: translateY(14px) scale(0.99); } }
@keyframes st-calm { from { opacity: 0; } }
.lp-bar { animation: st-calm 1s ease 0.1s backwards; }
.st-steps li { animation: st-in 1s cubic-bezier(0.25, 0.6, 0.3, 1) 0.3s backwards; }
.st-steps li:nth-child(2) { animation-delay: 0.42s; }
.st-steps li:nth-child(3) { animation-delay: 0.54s; }
.st-steps li:nth-child(4) { animation-delay: 0.66s; }
.st-stage > .st-phone { animation: st-arrive 1.5s cubic-bezier(0.25, 0.6, 0.3, 1) 0.6s backwards; }
.st-act { animation: st-in 1s cubic-bezier(0.25, 0.6, 0.3, 1) 1.1s backwards; }
.st-act .lp-cta-row { animation: none; }
.st-steps.st-settled li { animation: none; }
html.again .st-steps li, html.again .st-stage > .st-phone, html.again .st-act, html.again .lp-bar { animation: none; }
@media (prefers-reduced-motion: reduce) { .st-steps li, .st-stage > .st-phone, .st-act, .lp-bar { animation: none; } }
