/* Lull, the app: the website's grainy pastel by day, dusk at bedtime. Built to feel like a native iPhone app. */
:root {
  --ink: #1f1a3d;
  --muted: #5e5880;
  --line: rgba(31, 26, 61, 0.1);
  --accent: #5b4bdb;
  --accent-ink: #4536b8;
  --glass: rgba(255, 255, 255, 0.64);
  --glass-strong: rgba(255, 255, 255, 0.86);
  --danger: #c0262d;
  --font: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont, "Quicksand", system-ui, sans-serif;
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  --pastel: radial-gradient(60% 40% at 8% 6%, #d6c0f6 0%, rgba(214, 192, 246, 0) 70%), radial-gradient(60% 40% at 96% 16%, #bfd5fa 0%, rgba(191, 213, 250, 0) 70%), radial-gradient(70% 45% at 25% 100%, #f5c9dd 0%, rgba(245, 201, 221, 0) 70%), linear-gradient(180deg, #e1e4fb 0%, #eae0f9 50%, #f6e0ec 100%);
  --dusk: linear-gradient(180deg, #1c1b4a 0%, #2c2768 38%, #4b3a7c 72%, #6b4a7e 100%);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; }
body { margin: 0; min-height: 100svh; font: 400 17px/1.4 var(--font); color: var(--ink); -webkit-font-smoothing: antialiased; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }
@media (display-mode: standalone) { body { overscroll-behavior: none; -webkit-user-select: none; user-select: none; } input { -webkit-user-select: text; user-select: text; } }

/* ---------- backgrounds ---------- */
/* A fixed layer, not background-attachment (iPhones ignore that), so the gradient never seams while scrolling. */
body.day, body.night { position: relative; isolation: isolate; }
body.day { background: #e6e1fa; }
body.night { background: #1c1b4a; color: #ece8ff; }
body.day::before, body.night::before { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; background-blend-mode: soft-light, normal; }
body.day::before { background-image: var(--grain), var(--pastel); }
body.night::before { background-image: var(--grain), var(--dusk); }

/* ---------- layout ---------- */
.app { max-width: 520px; margin: 0 auto; min-height: 100svh; padding: calc(env(safe-area-inset-top) + 16px) 20px calc(env(safe-area-inset-bottom) + 112px); }
.app.no-tabs { padding-bottom: calc(env(safe-area-inset-bottom) + 32px); }
.eyebrow { margin: 6px 4px 0; font-size: 15px; font-weight: 600; color: var(--muted); }
.large-title { margin: 2px 4px 18px; font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -0.01em; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.section-label { margin: 10px 18px -8px; font-size: 13px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); }
.footnote { margin: -8px 18px 0; font-size: 14px; color: var(--muted); }

/* ---------- cards and lists ---------- */
.card { border-radius: 26px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 10px 30px rgba(47, 34, 110, 0.08); padding: 18px; }
.card h2 { margin: 0 0 12px; font-size: 20px; font-weight: 700; }
.card p { margin: 0; }
.list { border-radius: 22px; background: var(--glass); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2); border: 1px solid rgba(255, 255, 255, 0.7); box-shadow: 0 10px 30px rgba(47, 34, 110, 0.06); overflow: hidden; }
.row { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 58px; padding: 10px 16px; border: 0; background: none; text-align: left; color: inherit; text-decoration: none; position: relative; }
.row + .row::before { content: ""; position: absolute; top: 0; left: 64px; right: 0; height: 1px; background: var(--line); }
.row.plain + .row.plain::before, .row.plain + .row::before { left: 16px; }
.row:active { background: rgba(255, 255, 255, 0.5); }
.row .label { flex: 1; font-size: 17px; font-weight: 600; }
.row .value { font-size: 17px; color: var(--muted); }
.row .chev { width: 9px; height: 15px; color: #b3adc9; flex: none; }
.row.danger .label { color: var(--danger); }
.row.link .label { color: var(--accent-ink); }
.tile { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; }
.tile svg { width: 20px; height: 20px; }
.t-violet { background: #ece8ff; color: var(--accent); }
.t-peach { background: #ffe9dc; color: #a24a16; }
.t-mint { background: #dff4ec; color: #1d6b4f; }
.t-night { background: #2a2160; color: #fff; }
.t-gray { background: #eceaf3; color: #4a4560; }
.t-rose { background: #fde4ee; color: #a3305f; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--accent); color: #fff; font-size: 17px; font-weight: 700; text-decoration: none; box-shadow: 0 8px 22px rgba(91, 75, 219, 0.3); }
.btn svg { width: 18px; height: 18px; }
.btn.block { width: 100%; }
.btn.small { min-height: 44px; padding: 0 18px; font-size: 16px; box-shadow: none; }
.btn.ghost { background: rgba(255, 255, 255, 0.7); color: var(--accent-ink); border: 1.5px solid rgba(91, 75, 219, 0.2); box-shadow: none; }
.btn.dark { background: var(--ink); box-shadow: 0 8px 22px rgba(31, 26, 61, 0.25); }
.btn.danger { background: var(--danger); box-shadow: none; }
.btn:disabled { opacity: 0.5; }
.text-btn { border: 0; background: none; color: var(--accent-ink); font-size: 16px; font-weight: 700; min-height: 44px; padding: 0 6px; }
.btn, .row, .chip, .face, .seg button, .tab, .text-btn, .icon-btn { transition: transform 0.16s var(--ease), background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.btn:active, .chip:active, .face:active, .seg button:active, .text-btn:active, .icon-btn:active { transform: scale(0.96); }

/* ---------- Today ---------- */
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; margin: 0 0 4px; }
.wd { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.wd small { font-size: 13px; font-weight: 600; color: var(--muted); }
.wd b { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 16px; font-weight: 700; border: 1.5px dashed rgba(91, 75, 219, 0.3); }
.wd.past b { border: 0; background: rgba(255, 255, 255, 0.55); }
.wd.heard b { border: 0; background: #ece8ff; color: var(--accent-ink); }
.wd.today small { color: var(--accent-ink); }
.wd.today b { border: 0; background: var(--accent); color: #fff; box-shadow: 0 6px 16px rgba(91, 75, 219, 0.35); }
.wd i { width: 6px; height: 6px; border-radius: 50%; background: transparent; }
.wd.heard i { background: var(--accent); }
.ring-card { display: flex; flex-direction: column; align-items: center; padding: 22px 18px 18px; }
.ring { position: relative; width: 272px; height: 272px; max-width: 78vw; max-height: 78vw; }
.ring > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ring .track { stroke: #ece8ff; }
.ring .arc { transition: stroke-dashoffset 1.4s var(--ease); }
.ring-center { position: absolute; inset: 15%; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.ring-center .k { font-size: 15px; font-weight: 600; color: var(--muted); }
.ring-center .big { font-size: 44px; font-weight: 700; line-height: 1.05; font-variant-numeric: tabular-nums; }
.ring-center .focus { margin-top: 4px; font-size: 15px; font-weight: 600; color: var(--muted); max-width: 13em; }
.ring-center .btn { margin-top: 12px; }
.ring-actions { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; justify-content: center; }
.faces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.face { min-height: 82px; border-radius: 20px; border: 2px solid transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 700; }
.face svg { width: 28px; height: 28px; }
.face.great { background: #dff4ec; color: #1d6b4f; }
.face.okay { background: #ece8ff; color: var(--accent-ink); }
.face.rough { background: #ffe9dc; color: #9a4512; }
.face[aria-pressed="true"] { border-color: currentColor; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { min-height: 40px; padding: 0 15px; border-radius: 999px; border: 1.5px solid rgba(91, 75, 219, 0.18); background: rgba(255, 255, 255, 0.7); font-size: 15px; font-weight: 600; }
.chip[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.thanks { margin-top: 12px; font-size: 15px; color: var(--muted); }
.promo { display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 16px; border-radius: 22px; border: 0; background: rgba(236, 232, 255, 0.85); text-align: left; color: inherit; }
.promo img { width: 48px; height: 48px; border-radius: 12px; flex: none; }
.promo div { flex: 1; min-width: 0; }
.promo b { display: block; font-size: 17px; }
.promo span { font-size: 15px; color: var(--muted); }
.promo .chev { margin-left: auto; color: var(--accent); width: 10px; height: 16px; flex: none; }
.notice { display: flex; gap: 12px; align-items: flex-start; }
.notice .tile { margin-top: 2px; }

/* ---------- Week ---------- */
.plan-row { display: flex; gap: 14px; align-items: center; padding: 13px 16px; position: relative; }
.plan-row + .plan-row::before { content: ""; position: absolute; top: 0; left: 16px; right: 0; height: 1px; background: var(--line); }
.plan-row b { width: 40px; font-size: 16px; }
.plan-row span { flex: 1; font-size: 16px; line-height: 1.35; }
.plan-row em { font-style: normal; font-size: 13px; font-weight: 700; color: var(--accent-ink); }
.plan-row.today { background: rgba(236, 232, 255, 0.75); }

/* ---------- You ---------- */
.profile { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 26px; color: #fff; background: linear-gradient(150deg, #2a2160, #5b4bdb); box-shadow: 0 12px 30px rgba(47, 34, 110, 0.25); }
.avatar { width: 56px; height: 56px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 22px; font-weight: 700; background: #ffd9c2; color: #8a3a12; }
.profile b { display: block; font-size: 20px; }
.profile div span { font-size: 15px; color: #d9d2ff; }
.switch { position: relative; width: 51px; height: 31px; flex: none; border-radius: 999px; border: 0; background: #e4e0f0; transition: background-color 0.2s ease; }
.switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18); transition: transform 0.25s var(--ease); }
.switch[aria-checked="true"] { background: #34c759; }
.switch[aria-checked="true"]::after { transform: translateX(20px); }

/* ---------- forms (sign-in, sheets) ---------- */
.field { display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 18px; border-radius: 20px; background: rgba(255, 255, 255, 0.8); border: 1px solid rgba(255, 255, 255, 0.9); }
.field input, .field select { flex: 1; min-width: 0; border: 0; background: transparent; font-size: 18px; font-weight: 600; outline: none; color: var(--ink); }
.field input[type="time"] { font-size: 28px; text-align: center; }
.code { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.code input { width: 100%; min-width: 0; height: 72px; border-radius: 20px; border: 2px solid transparent; background: rgba(255, 255, 255, 0.85); text-align: center; font-size: 32px; font-weight: 700; outline: none; color: var(--ink); }
.code input:focus { border-color: var(--accent); }
.err { min-height: 22px; margin: 4px 4px 0; font-size: 15px; color: #b3261e; }
.fine { margin: 10px 4px 0; font-size: 14px; color: var(--muted); }
.fine a { color: var(--accent-ink); }
.nav-back { align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin: 4px 0 -8px -4px; padding: 8px 10px 8px 4px; border: 0; background: none; font: inherit; font-size: 17px; font-weight: 500; color: var(--accent-ink); text-decoration: none; cursor: pointer; }
.nav-back svg { width: 11px; height: 18px; }
.player { position: relative; }
.player .night-back { position: absolute; top: calc(env(safe-area-inset-top) + 8px); left: 14px; margin: 0; color: #d6d0f5; font-size: 16px; }
.screen > .btn.block { margin-top: 14px; }
.cc { position: relative; display: inline-flex; align-items: center; gap: 5px; padding-right: 12px; border-right: 1px solid rgba(31, 26, 61, 0.12); font-size: 18px; font-weight: 600; color: var(--ink); white-space: nowrap; }
.cc b { font-weight: inherit; }
.cc svg { width: 12px; height: 12px; opacity: 0.55; }
.field .cc select, .cc select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; font-size: 16px; }
.app-logo { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin: 28px 4px 22px; color: var(--ink); font-size: 24px; font-weight: 700; letter-spacing: 0.01em; }
.app-logo svg { width: 28px; height: 28px; }
.hero-icon { width: 64px; height: 64px; border-radius: 22px; display: grid; place-items: center; background: #ece8ff; color: var(--accent); margin: 24px 4px 0; }
.hero-icon svg { width: 30px; height: 30px; }
.spacer { flex: 1; }
.screen { display: flex; flex-direction: column; min-height: calc(100svh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 48px); }

/* ---------- segmented choices (in sheets) ---------- */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); border-radius: 16px; background: rgba(31, 26, 61, 0.06); padding: 4px; gap: 4px; }
.seg button { min-height: 46px; border: 0; border-radius: 12px; background: transparent; font-size: 16px; font-weight: 700; }
.seg button[aria-checked="true"] { background: #fff; box-shadow: 0 2px 8px rgba(31, 26, 61, 0.12); color: var(--accent-ink); }
.options { display: flex; flex-direction: column; gap: 10px; }
.option { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px 14px; border-radius: 20px; border: 2px solid transparent; background: rgba(255, 255, 255, 0.75); text-align: left; }
.option[aria-checked="true"] { border-color: var(--accent); background: #f3f0ff; }
.option .who { flex: 1; }
.option b { display: block; font-size: 17px; }
.option span { font-size: 15px; color: var(--muted); }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--ink); color: #fff; flex: none; }
.icon-btn svg { width: 16px; height: 16px; }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 6px max(12px, env(safe-area-inset-left)) calc(env(safe-area-inset-bottom) + 6px); background: rgba(255, 255, 255, 0.72); backdrop-filter: blur(24px) saturate(1.4); -webkit-backdrop-filter: blur(24px) saturate(1.4); border-top: 1px solid rgba(31, 26, 61, 0.08); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 50px; justify-content: center; border: 0; background: none; color: var(--muted); font-size: 12px; font-weight: 600; }
.tab svg { width: 27px; height: 27px; }
.tab[aria-selected="true"] { color: var(--accent); }
.tab:active svg { transform: scale(0.9); }

/* ---------- sheets ---------- */
.sheet-backdrop { position: fixed; inset: 0; z-index: 40; background: rgba(31, 26, 61, 0.35); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade-in 0.25s ease both; }
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; max-width: 560px; margin: 0 auto; max-height: 88svh; overflow: auto; border-radius: 30px 30px 0 0; background: var(--glass-strong); backdrop-filter: blur(28px) saturate(1.3); -webkit-backdrop-filter: blur(28px) saturate(1.3); padding: 10px 22px calc(env(safe-area-inset-bottom) + 24px); box-shadow: 0 -12px 40px rgba(31, 26, 61, 0.2); animation: sheet-up 0.42s var(--ease) both; color: var(--ink); }
.sheet.closing { animation: sheet-down 0.25s ease both; }
.sheet-backdrop.closing { animation: fade-out 0.25s ease both; }
.grabber { width: 40px; height: 5px; border-radius: 3px; background: rgba(31, 26, 61, 0.18); margin: 0 auto 16px; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sheet-head h2 { margin: 0; font-size: 22px; font-weight: 700; }
.sheet p { margin: 0 0 12px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.steps li { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.7); font-size: 17px; font-weight: 600; }
.steps li i { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 700; background: var(--accent); color: #fff; flex: none; }
.steps li svg { margin-left: auto; width: 24px; height: 24px; color: var(--accent); }
.erase { list-style: none; margin: 0 0 12px; padding: 14px 16px; border-radius: 20px; background: rgba(255, 255, 255, 0.7); display: flex; flex-direction: column; gap: 10px; font-size: 16px; font-weight: 600; }
.erase li { display: flex; gap: 10px; align-items: center; }
.erase svg { width: 18px; height: 18px; color: var(--danger); flex: none; }

/* ---------- toast ---------- */
.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 92px); z-index: 50; transform: translateX(-50%); display: flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px; background: rgba(31, 26, 61, 0.88); color: #fff; font-size: 15px; font-weight: 600; animation: toast 2.2s var(--ease) both; pointer-events: none; }
.toast svg { width: 16px; height: 16px; }

/* ---------- motion ---------- */
.rise { animation: rise 0.55s var(--ease) both; }
.rise:nth-child(2) { animation-delay: 0.05s; }
.rise:nth-child(3) { animation-delay: 0.1s; }
.rise:nth-child(4) { animation-delay: 0.15s; }
.rise:nth-child(5) { animation-delay: 0.2s; }
.rise:nth-child(6) { animation-delay: 0.25s; }
.rise:nth-child(n + 7) { animation-delay: 0.3s; }
/* Page changes (tabs, sign-in steps, and between pages): the tab bar stays put, the page slides a little and fades. */
@view-transition { navigation: auto; }
.tabbar { view-transition-name: tabbar; }
.stack, .screen { view-transition-name: page; }
::view-transition-group(page) { animation-duration: 0.3s; }
::view-transition-old(page) { animation: fade-out 0.16s ease both; }
::view-transition-new(page) { animation: page-in 0.36s var(--ease) both; }
html[data-nav="forward"]::view-transition-old(page) { animation: page-out-left 0.2s ease both; }
html[data-nav="forward"]::view-transition-new(page) { animation: page-in-right 0.36s var(--ease) both; }
html[data-nav="back"]::view-transition-old(page) { animation: page-out-right 0.2s ease both; }
html[data-nav="back"]::view-transition-new(page) { animation: page-in-left 0.36s var(--ease) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes page-in-right { from { opacity: 0; transform: translateX(28px); } }
@keyframes page-in-left { from { opacity: 0; transform: translateX(-28px); } }
@keyframes page-out-left { to { opacity: 0; transform: translateX(-20px); } }
@keyframes page-out-right { to { opacity: 0; transform: translateX(20px); } }
/* The player's steps (ready, playing, the end) ease in rather than snapping. */
.player > section, .player > .stage { animation: fade-in 0.6s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes fade-in { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes sheet-up { from { transform: translateY(100%); } }
@keyframes sheet-down { to { transform: translateY(100%); } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, 8px); } 12%, 80% { opacity: 1; transform: translate(-50%, 0); } 100% { opacity: 0; transform: translate(-50%, 0); } }
@keyframes breathe { 0%, 100% { transform: scale(0.92); } 45% { transform: scale(1.05); } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 40px rgba(214, 208, 245, 0.35); } 50% { box-shadow: 0 0 74px rgba(214, 208, 245, 0.6); } }

/* ---------- tonight's meditation (night) ---------- */
.player { max-width: 480px; margin: 0 auto; min-height: 100svh; display: flex; flex-direction: column; align-items: center; text-align: center; padding: calc(env(safe-area-inset-top) + 48px) 24px calc(env(safe-area-inset-bottom) + 40px); }
.pill { font-size: 13px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: #d6d0f5; background: rgba(214, 208, 245, 0.14); padding: 7px 14px; border-radius: 999px; }
.player h1 { margin: 16px 0 0; font-size: 30px; font-weight: 700; line-height: 1.2; }
.player .meta { margin: 6px 0 0; font-size: 17px; color: #d6d0f5; }
.stage { flex: 1; display: grid; place-items: center; width: 100%; min-height: 300px; }
.halo { width: 260px; height: 260px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(214, 208, 245, 0.28), rgba(214, 208, 245, 0.03) 70%); animation: breathe 8s ease-in-out infinite; }
.big-play { width: 124px; height: 124px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #ece8ff; color: #2c2768; padding-left: 8px; animation: glow 4s ease-in-out infinite; }
.big-play svg { width: 46px; height: 46px; }
.big-play:active { transform: scale(0.95); }
.tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tags span { font-size: 15px; font-weight: 600; padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); }
.hint-night { margin: 16px 0 0; font-size: 15px; color: #d6d0f5; }
.dial { position: relative; width: 280px; height: 280px; }
.dial svg.ring-svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.dial .orb { position: absolute; inset: 42px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; background: radial-gradient(circle, rgba(214, 208, 245, 0.32), rgba(214, 208, 245, 0.04) 72%); animation: breath 8s ease-in-out infinite; }
/* The breathing cue: one 8-second clock for the orb and the words. "Breathe in" while the orb grows, then it fully
   fades before "Breathe out" appears as it shrinks, so the two never overlap. Both pause with the audio. */
@keyframes breath { 0%, 100% { transform: scale(0.9); } 50% { transform: scale(1.05); } }
@keyframes cue-in { 0% { opacity: 0; } 8%, 38% { opacity: 1; } 46%, 100% { opacity: 0; } }
@keyframes cue-out { 0%, 50% { opacity: 0; } 58%, 88% { opacity: 1; } 96%, 100% { opacity: 0; } }
.orb .cue { display: grid; justify-items: center; font-size: 16px; font-weight: 600; color: #d6d0f5; }
.orb .cue > span { grid-area: 1 / 1; white-space: nowrap; }
.cue .in { animation: cue-in 8s linear infinite; }
.cue .out { opacity: 0; animation: cue-out 8s linear infinite; }
.cue .note { opacity: 0; }
.dial.paused .orb, .dial.paused .cue > span { animation-play-state: paused; }
.dial.noted .cue .in, .dial.noted .cue .out { visibility: hidden; }
.dial.noted .cue .note { opacity: 1; }
.orb .left { font-size: 44px; font-weight: 700; font-variant-numeric: tabular-nums; }
.orb small { font-size: 15px; color: #d6d0f5; }
.controls { display: flex; align-items: center; justify-content: center; gap: 28px; }
.ctl { width: 60px; height: 60px; border-radius: 50%; border: 0; display: grid; place-items: center; background: rgba(255, 255, 255, 0.1); color: #ece8ff; position: relative; transition: transform 0.16s var(--ease); }
.ctl svg { width: 26px; height: 26px; }
.ctl.main { width: 84px; height: 84px; background: #ece8ff; color: #2c2768; }
.ctl.main svg { width: 32px; height: 32px; }
.ctl:active { transform: scale(0.94); }
.ctl .hold { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); transform: rotate(-90deg); pointer-events: none; }
.ctl .hold circle { stroke-dasharray: 201; stroke-dashoffset: 201; }
.ctl.holding .hold circle { stroke-dashoffset: 0; transition: stroke-dashoffset 1s linear; }
.ctl-labels { display: flex; justify-content: center; gap: 28px; margin-top: 8px; font-size: 13px; color: #d6d0f5; }
.ctl-labels span { width: 60px; display: flex; justify-content: center; text-align: center; line-height: 1.25; }
.ctl-labels span:first-child, .ctl-labels span:last-child { width: 100px; margin: 0 -20px; }
.ctl-labels span:nth-child(2) { width: 84px; }
.night .btn { background: #ece8ff; color: #2c2768; box-shadow: none; }
.moon-halo { width: 128px; height: 128px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle, rgba(214, 208, 245, 0.3), rgba(214, 208, 245, 0.03) 72%); animation: breathe 8s ease-in-out infinite; }
.moon-halo svg { width: 58px; height: 58px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .cue .in, .cue .out { visibility: hidden; }
}
.player h1.small-title { font-size: 22px; margin-top: 0; }
.center { margin-left: auto; margin-right: auto; }
.player .btn { min-width: 220px; }

/* invisible native switch: toggling it gives the iPhone's light haptic tap (iOS 18+) */
.haptic { position: fixed; left: -200px; top: 0; width: 1px; height: 1px; opacity: 0; pointer-events: none; }

/* Your meditations (last 7 days) */
.row.med .label { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.row.med .label b { font-size: 17px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.med .label small { font-size: 14px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row.med .played { color: var(--accent-ink); display: grid; place-items: center; }
.row.med .played svg { width: 18px; height: 18px; }

/* How Lull works (in-app sheet) */
.how-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 14px; }
.how-list li { display: flex; gap: 14px; align-items: flex-start; }
.how-list .n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-ink); color: #fff; font-size: 15px; font-weight: 700; }
.how-list b { display: block; font-size: 17px; }
.how-list span:not(.n) { display: block; margin-top: 2px; font-size: 15px; line-height: 1.4; color: var(--muted); }
.how-notes { margin: 22px 0 6px; padding: 16px 16px 16px 34px; border-radius: 18px; background: rgba(255, 255, 255, 0.6); display: grid; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--muted); }
.how-notes b { color: var(--ink); }

/* Tonight's is ready: a small copy of the listening screen on Today */
.night-card { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0; padding: 26px 20px 24px; color: #fff; background-color: #2c2768; background-image: var(--grain), var(--dusk); border: 0; box-shadow: 0 18px 40px rgba(28, 27, 74, 0.35); }
.night-card .pill { margin: 0; }
.night-card h2 { margin: 16px 0 0; font-size: 28px; font-weight: 700; line-height: 1.2; color: #fff; }
.night-card .big-play { margin: 34px 0 34px; width: 112px; height: 112px; padding-left: 7px; text-decoration: none; }
.night-card .big-play svg { width: 42px; height: 42px; }
.night-card .big-play:active { transform: scale(0.95); }
.night-card .tags span { color: #fff; }
.night-card .hint-night { margin-top: 14px; font-size: 15px; }

/* A gift meditation: a quiet invitation under the player for the person who received it */
.gift-cta { display: inline-block; margin-top: 18px; padding: 10px 16px; border-radius: 999px; background: rgba(255, 255, 255, 0.1); color: #ece8ff; font-size: 15px; font-weight: 600; text-decoration: none; }
.gift-cta:active { transform: scale(0.97); }

/* Gifts: the card on Today, the form, and the share button on a gift row. */
.gift-promo { margin-top: 4px; }
.promo .tile { width: 44px; height: 44px; border-radius: 13px; flex: none; display: grid; place-items: center; }
.promo .tile.t-rose { color: #a3305f; }
.promo .tile svg { width: 22px; height: 22px; }
.gift-form { display: grid; gap: 14px; margin-top: 6px; }
.stack-field { display: grid; gap: 6px; }
.stack-field > span:first-child { font-size: 14px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.field.area { align-items: flex-start; padding-top: 14px; padding-bottom: 14px; }
.field textarea { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 17px; line-height: 1.4; resize: none; outline: none; color: var(--ink); }
.field input[type="text"] { font-size: 17px; }
.fine.center { text-align: center; margin-top: 2px; }
.row.med .med-link { display: flex; align-items: center; gap: 14px; flex: 1; min-width: 0; color: inherit; text-decoration: none; }
.share-btn { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; background: #ece8ff; color: var(--accent-ink); }
.share-btn svg { width: 19px; height: 19px; }
