@font-face { font-family: 'Cormorant Garamond'; font-style: italic; font-weight: 500; font-display: swap; src: url(/assets/fonts/bynowak-0.woff2) format('woff2'); }
@font-face { font-family: 'Cormorant Garamond'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/bynowak-2.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url(/assets/fonts/bynowak-4.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url(/assets/fonts/bynowak-5.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url(/assets/fonts/bynowak-6.woff2) format('woff2'); }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url(/assets/fonts/bynowak-7.woff2) format('woff2'); }

/* Sky colours are registered so the whole scene can glide between phases. */
@property --s1 { syntax: '<color>'; inherits: true; initial-value: #8fc1e3; }
@property --s2 { syntax: '<color>'; inherits: true; initial-value: #cfe6ef; }
@property --s3 { syntax: '<color>'; inherits: true; initial-value: #f5efe2; }
@property --sun { syntax: '<color>'; inherits: true; initial-value: #fffbea; }
@property --glow { syntax: '<color>'; inherits: true; initial-value: rgba(255,248,214,.8); }
@property --l1 { syntax: '<color>'; inherits: true; initial-value: #8fb0a6; }
@property --l2 { syntax: '<color>'; inherits: true; initial-value: #6e948a; }
@property --l3 { syntax: '<color>'; inherits: true; initial-value: #557a72; }
@property --ink { syntax: '<color>'; inherits: true; initial-value: #12262b; }
@property --accent { syntax: '<color>'; inherits: true; initial-value: #2f6f73; }
@property --star { syntax: '<number>'; inherits: true; initial-value: 0; }

:root {
  --serif: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --sans: 'Manrope', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif;
  --glass: rgba(255,255,255,.42);
  --glass-strong: rgba(255,255,255,.62);
  --glass-line: rgba(255,255,255,.65);
  --ink-soft: color-mix(in oklab, var(--ink) 64%, transparent);
  --ink-faint: color-mix(in oklab, var(--ink) 16%, transparent);
  --sun-x: 50%; --sun-y: 40%;
  --ease: cubic-bezier(.2,.7,.2,1);
  --slow: 2.4s;
  --tb-h: env(titlebar-area-height, 36px);
  color-scheme: light;
  transition: --s1 var(--slow) var(--ease), --s2 var(--slow) var(--ease), --s3 var(--slow) var(--ease), --sun var(--slow), --glow var(--slow), --l1 var(--slow), --l2 var(--slow), --l3 var(--slow), --ink 1.2s, --accent 1.2s, --star 3s;
}
:root[data-mode='dark'] {
  --glass: rgba(14,16,44,.36);
  --glass-strong: rgba(18,20,52,.62);
  --glass-line: rgba(255,255,255,.13);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--s3);
  color: var(--ink);
  font: 500 15px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
::selection { background: color-mix(in oklab, var(--accent) 35%, transparent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Sky ---------- */
.sky { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, var(--s1) 0%, var(--s2) 52%, var(--s3) 82%); }
.sky .stars { position: absolute; inset: 0; width: 100%; height: 100%; opacity: var(--star); }
/* One soft radial: a crisp disc that melts into its glow, with no hard edge anywhere. */
.sun { position: absolute; left: var(--sun-x); top: var(--sun-y); width: 640px; height: 640px; margin: -320px 0 0 -320px; border-radius: 50%;
  background: radial-gradient(circle closest-side, var(--sun) 0 19%, color-mix(in oklab, var(--sun) 55%, var(--glow)) 21%, var(--glow) 30%, color-mix(in oklab, var(--glow) 35%, transparent) 55%, transparent 100%);
  transition: left 3.2s var(--ease), top 3.2s var(--ease), opacity 2s; }
.moon { position: absolute; right: 14%; top: 16%; width: 54px; height: 54px; border-radius: 50%; opacity: 0;
  box-shadow: inset -12px -4px 0 0 #f4f1ff; filter: drop-shadow(0 0 18px rgba(200,210,255,.55)); transition: opacity 3s 1s; }
:root[data-phase='night'] .moon { opacity: .95; }
:root[data-phase='night'] .sun { opacity: 0; }
.horizon { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 30vh; min-height: 180px; }
.horizon .h1 { fill: var(--l1); } .horizon .h2 { fill: var(--l2); } .horizon .h3 { fill: var(--l3); }
.horizon .shine { fill: var(--sun); opacity: .18; }
.grain { position: absolute; inset: -50%; opacity: .07; mix-blend-mode: overlay;
  background-image: 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='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ---------- Shell ---------- */
.titlebar { position: fixed; z-index: 5; top: env(titlebar-area-y, 0); left: env(titlebar-area-x, 0); width: env(titlebar-area-width, 100%); height: var(--tb-h);
  display: flex; align-items: center; gap: 10px; padding: 0 14px; -webkit-app-region: drag; app-region: drag; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.titlebar .mark { width: 14px; height: 14px; }
.titlebar button { -webkit-app-region: no-drag; app-region: no-drag; }
.app { position: relative; z-index: 2; height: 100%; overflow-y: auto; overflow-x: hidden; padding: calc(var(--tb-h) + 18px) 24px 28vh; scrollbar-width: thin; scrollbar-color: var(--ink-faint) transparent; }
.nav { position: relative; z-index: 4; display: flex; justify-content: center; align-items: center; gap: 10px; margin: 0 auto 6px; max-width: 680px; }
.tabs { display: flex; gap: 2px; padding: 4px; border-radius: 999px; background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(22px) saturate(1.4); }
.tabs button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink); opacity: .68; transition: background .3s, opacity .3s; }
.tabs button:hover { opacity: 1; }
.tabs button[aria-current='page'] { background: var(--glass-strong); opacity: 1; box-shadow: 0 1px 8px rgba(0,0,0,.06); }
.icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(22px); color: var(--ink); }
.icon-btn svg { width: 18px; height: 18px; }
.pro-pill { white-space: nowrap; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(22px); border-radius: 999px; padding: 8px 14px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.pro-pill.on { background: linear-gradient(120deg, color-mix(in oklab, var(--accent) 30%, transparent), var(--glass)); }

.view { max-width: 640px; margin: 0 auto; animation: rise .9s var(--ease) both; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

.hello { padding: 9vh 0 26px; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; letter-spacing: -.01em; margin: 0; }
h1 { font-size: clamp(44px, 7vw, 76px); line-height: .98; font-style: italic; }
h2 { font-size: clamp(30px, 4.4vw, 42px); line-height: 1.05; font-style: italic; }
h3 { font-size: 24px; line-height: 1.1; }
.lede { font-size: 17px; color: var(--ink-soft); margin: 14px 0 0; max-width: 46ch; }
.countdown { font-variant-numeric: tabular-nums; }

.card { background: var(--glass); border: 1px solid var(--glass-line); border-radius: 26px; padding: 22px; backdrop-filter: blur(26px) saturate(1.5); box-shadow: 0 30px 80px -40px rgba(10,10,40,.35); margin: 0 0 14px; }
.card.first { padding: 26px 26px 22px; position: relative; overflow: hidden; }
.card.first::after { content: ''; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: radial-gradient(circle, color-mix(in oklab, var(--sun) 70%, transparent), transparent 70%); opacity: .7; pointer-events: none; }
.first .move { font-family: var(--serif); font-size: 30px; line-height: 1.1; margin: 8px 0 6px; }
.first .of { color: var(--ink-soft); font-size: 13px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin: 28px 4px 10px; }
.section-head .eyebrow b { color: var(--ink); }

.capture { display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 18px; border-radius: 999px; }
.capture input { flex: 1; min-width: 0; border: 0; background: none; outline: none; padding: 10px 0; font-size: 16px; }
.capture input::placeholder { color: var(--ink-soft); }
.kbd { font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--ink-faint); color: var(--ink-soft); }

.list { list-style: none; margin: 0; padding: 6px; }
.loop { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 16px; transition: background .25s, opacity .4s, transform .4s; }
.loop:hover { background: color-mix(in oklab, var(--glass-strong) 70%, transparent); }
.loop .text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.loop .meta { font-size: 12px; color: var(--ink-soft); white-space: nowrap; }
.loop.ghost .meta { color: color-mix(in oklab, #d4566a 80%, var(--ink)); font-weight: 700; }
.loop.leaving { opacity: 0; transform: translateX(16px); }
.check { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.6px solid var(--ink-soft); background: none; display: grid; place-items: center; padding: 0; transition: background .25s, border-color .25s; }
.check:hover { border-color: var(--accent); background: color-mix(in oklab, var(--accent) 18%, transparent); }
.check svg { width: 12px; height: 12px; opacity: 0; }
.check.on { background: var(--accent); border-color: var(--accent); } .check.on svg { opacity: 1; color: #fff; }
.mini { border: 0; background: none; padding: 4px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--ink-soft); opacity: 0; transition: opacity .2s; }
.loop:hover .mini, .loop:focus-within .mini { opacity: 1; }
.mini:hover { color: var(--ink); background: var(--glass); }
.empty { padding: 18px; color: var(--ink-soft); text-align: center; font-size: 14px; }
details.card > summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; font-weight: 600; }
details.card > summary::-webkit-details-marker { display: none; }
details.card[open] > summary { margin-bottom: 6px; }

.btn { border: 0; border-radius: 999px; padding: 13px 22px; font-weight: 700; font-size: 14px; letter-spacing: .01em; display: inline-flex; align-items: center; gap: 10px; transition: transform .25s var(--ease), box-shadow .3s, background .3s; }
.btn:active { transform: scale(.97); }
.btn.primary { background: var(--ink); color: var(--s3); box-shadow: 0 14px 40px -14px color-mix(in oklab, var(--ink) 70%, transparent); }
:root[data-mode='dark'] .btn.primary { color: #15122b; }
.btn.ghost { background: var(--glass); border: 1px solid var(--glass-line); backdrop-filter: blur(20px); }
.btn.sunset { background: linear-gradient(120deg, #f6b26b, #e8706a 55%, #8e4f8c); color: #fff; box-shadow: 0 18px 50px -16px rgba(232,112,106,.8); }
.btn.sunset.pulse { animation: pulse 2.8s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 18px 70px -8px rgba(246,178,107,.9); } }
.btn:disabled { opacity: .45; cursor: default; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.cta-row { margin-top: 26px; }

/* ---------- Ritual ---------- */
.app { transition: opacity .7s var(--ease), visibility .7s; }
.veiled .app { opacity: 0; visibility: hidden; }
.ritual { position: fixed; inset: 0; z-index: 10; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; gap: 16px; padding: calc(var(--tb-h) + 10px) 24px max(18vh, 120px); animation: fade .8s var(--ease) both; }
.ritual::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, color-mix(in oklab, var(--s1) 40%, transparent), transparent 60%); }
@keyframes fade { from { opacity: 0; } }
.ritual-top { display: flex; justify-content: space-between; align-items: center; max-width: 680px; width: 100%; margin: 0 auto; }
.dots { display: flex; gap: 8px; }
.dots i { width: 28px; height: 4px; border-radius: 4px; background: var(--ink-faint); transition: background .5s; }
.dots i.on { background: var(--ink); }
.stage { max-width: 680px; width: 100%; max-height: 100%; overflow-y: auto; margin: 0 auto; align-self: center; padding: 4px; animation: rise .7s var(--ease) both; scrollbar-width: thin; }
.stage h2 { font-size: clamp(36px, 5.2vw, 56px); }
.stage .lede { margin-bottom: 22px; }
.ritual-foot { max-width: 680px; width: 100%; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.textlink { border: 0; background: none; padding: 8px 4px; color: var(--ink-soft); font-weight: 600; font-size: 14px; }
.textlink:hover { color: var(--ink); }

.sortcard { padding: 34px 32px 26px; text-align: center; animation: deal .5s var(--ease) both; }
@keyframes deal { from { opacity: 0; transform: translateY(18px) rotate(-1deg) scale(.98); } }
.sortcard .text { font-family: var(--serif); font-size: clamp(28px, 4vw, 38px); line-height: 1.12; margin: 6px 0 10px; overflow-wrap: anywhere; }
.sortcard .meta { color: var(--ink-soft); font-size: 13px; min-height: 20px; }
.choices { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 26px; }
.choice { border: 1px solid var(--glass-line); background: var(--glass); border-radius: 18px; padding: 14px 8px 12px; display: grid; gap: 4px; justify-items: center; font-weight: 700; font-size: 14px; transition: transform .2s var(--ease), background .2s; }
.choice:hover { transform: translateY(-2px); background: var(--glass-strong); }
.choice small { font-weight: 500; font-size: 11px; color: var(--ink-soft); }
.choice .kbd { margin-top: 4px; }
.count { text-align: center; margin-top: 14px; color: var(--ink-soft); font-size: 13px; }

.pick { display: grid; gap: 8px; margin-bottom: 18px; max-height: 26vh; overflow-y: auto; padding: 2px; }
.pick label { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; border: 1px solid var(--glass-line); background: var(--glass); cursor: pointer; transition: background .2s; }
.pick input { accent-color: var(--accent); width: 18px; height: 18px; }
.pick label:has(input:checked) { background: var(--glass-strong); box-shadow: inset 0 0 0 1.5px var(--accent); }
.field { width: 100%; border: 1px solid var(--glass-line); background: var(--glass); backdrop-filter: blur(20px); border-radius: 18px; padding: 16px 18px; font-size: 18px; outline: none; transition: border-color .2s, background .2s; }
.field:focus { border-color: var(--accent); background: var(--glass-strong); }
textarea.field { resize: none; min-height: 96px; font-size: 17px; }
.tally { display: flex; gap: 22px; flex-wrap: wrap; margin: 20px 0 6px; color: var(--ink-soft); font-size: 14px; }
.tally b { font-family: var(--serif); font-size: 30px; color: var(--ink); display: block; line-height: 1; font-weight: 500; }

.hold { position: relative; overflow: hidden; isolation: isolate; user-select: none; touch-action: none; }
.hold::before { content: ''; position: absolute; inset: 0; z-index: -1; background: rgba(255,255,255,.28); transform: scaleX(0); transform-origin: left; }
.hold.holding::before { transform: scaleX(1); transition: transform var(--hold, 1.3s) linear; }

.finale { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; text-align: center; pointer-events: none; }
.finale h1 { opacity: 0; animation: bloom 2.6s 1.6s var(--ease) forwards; color: #fff6ec; text-shadow: 0 4px 40px rgba(0,0,0,.35); }
.finale p { opacity: 0; animation: bloom 2s 2.6s var(--ease) forwards; color: #e9ecff; font-size: 17px; }
@keyframes bloom { from { opacity: 0; transform: translateY(10px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }

/* ---------- Night ---------- */
.night { text-align: center; padding-top: 14vh; }
.night h1 { font-size: clamp(56px, 9vw, 96px); }
.night .tomorrow { margin: 34px auto 0; max-width: 520px; text-align: left; }
.night .quiet { color: var(--ink-soft); margin-top: 26px; font-size: 15px; }

/* ---------- Evenings & insights ---------- */
.evening { display: grid; grid-template-columns: 74px 1fr; gap: 18px; }
.evening .date { font-family: var(--serif); font-size: 38px; line-height: .9; text-align: center; }
.evening .date small { display: block; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin-top: 6px; }
.evening .note { font-family: var(--serif); font-style: italic; font-size: 20px; margin: 6px 0 0; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chip { font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--glass-strong); color: var(--ink-soft); }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
.stat { padding: 18px; margin: 0; }
.stat b { display: block; font-family: var(--serif); font-size: 40px; line-height: 1; font-weight: 500; }
.stat span { font-size: 12px; color: var(--ink-soft); font-weight: 600; }
.chart { width: 100%; height: 170px; display: block; margin-top: 10px; }
.chart .bar { fill: color-mix(in oklab, var(--ink) 30%, transparent); }
.chart .bar.ghost { fill: color-mix(in oklab, #d4566a 75%, transparent); }
.chart text { fill: var(--ink-soft); font-size: 10px; font-family: var(--sans); }
.locked { position: relative; }
.locked > .blur { filter: blur(7px) saturate(.8); opacity: .75; pointer-events: none; user-select: none; }
.lock-card { position: absolute; inset: 40px 0 auto; margin: 0 auto; max-width: 420px; text-align: center; padding: 30px 28px; background: var(--glass-strong); }
.lock-card p { color: var(--ink-soft); margin: 10px 0 20px; }

/* ---------- Dialogs ---------- */
dialog { border: 1px solid var(--glass-line); background: var(--glass-strong); color: var(--ink); backdrop-filter: blur(40px) saturate(1.6); border-radius: 28px; padding: 0; overflow: hidden; width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 80px); box-shadow: 0 40px 120px -30px rgba(0,0,30,.55); }
dialog::backdrop { background: rgba(10,12,30,.28); backdrop-filter: blur(4px); }
dialog[open] { animation: rise .5s var(--ease) both; }
.dlg { padding: 28px; overflow-y: auto; max-height: calc(100vh - 80px); }
.dlg header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.set { display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center; padding: 14px 0; border-top: 1px solid var(--ink-faint); }
.set p { margin: 0; grid-column: 1; font-size: 13px; color: var(--ink-soft); }
.set label { font-weight: 700; }
.set input[type='time'], .set input[type='text'] { border: 1px solid var(--ink-faint); background: var(--glass); border-radius: 12px; padding: 8px 12px; min-width: 150px; }
.switch { appearance: none; width: 44px; height: 26px; border-radius: 99px; background: var(--ink-faint); position: relative; cursor: pointer; transition: background .25s; margin: 0; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.25); transition: transform .25s var(--ease); }
.switch:checked { background: var(--accent); } .switch:checked::after { transform: translateX(18px); }
.skies { display: flex; gap: 10px; flex-wrap: wrap; grid-column: 1 / -1; }
.swatch { width: 74px; border: 0; background: none; padding: 0; display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-soft); }
.swatch i { display: block; height: 52px; border-radius: 14px; border: 2px solid transparent; position: relative; }
.swatch[aria-pressed='true'] i { border-color: var(--ink); }
.swatch .lk { position: absolute; right: 5px; top: 5px; width: 16px; height: 16px; color: #fff; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0 10px; }
.plan { text-align: left; border: 1px solid var(--glass-line); background: var(--glass); border-radius: 20px; padding: 18px; display: grid; gap: 2px; transition: transform .2s var(--ease), box-shadow .2s; }
.plan:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1.5px var(--accent); }
.plan b { font-family: var(--serif); font-size: 34px; font-weight: 500; line-height: 1.05; }
.plan .tag { justify-self: start; font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--accent); color: #fff; margin-bottom: 6px; }
.perks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.perks li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.perks li span { color: var(--ink-soft); display: block; font-size: 13px; }
.perks svg { width: 18px; height: 18px; color: var(--accent); margin-top: 3px; }
.fine { font-size: 12px; color: var(--ink-soft); }

.toast { position: fixed; z-index: 30; left: 50%; bottom: 28px; transform: translate(-50%, 20px); opacity: 0; transition: .4s var(--ease); background: rgba(14,14,34,.86); color: #fff; backdrop-filter: blur(12px); padding: 12px 20px; border-radius: 999px; font-size: 14px; font-weight: 600; pointer-events: none; max-width: calc(100vw - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Windows app: native title bar, no in-page one ---------- */
.desktop { --tb-h: 0px; }
.desktop .titlebar { display: none; }
.update { position: fixed; z-index: 25; left: 50%; top: calc(var(--tb-h) + 14px); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; padding: 8px 8px 8px 18px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-line); backdrop-filter: blur(24px); font-size: 14px; font-weight: 600; box-shadow: 0 20px 50px -20px rgba(0,0,30,.4); }
.update .btn { padding: 9px 16px; font-size: 13px; }

/* ---------- Account & paywall ---------- */
.price-card { padding: 28px; max-width: 560px; }
.price-row { display: flex; gap: 34px; flex-wrap: wrap; }
.price-row b { display: block; font-family: var(--serif); font-size: 56px; font-weight: 500; line-height: 1; margin-top: 6px; }
.price-row span { font-size: 13px; color: var(--ink-soft); }
.paywall .perks li { grid-template-columns: 22px 1fr; }
.auth h1, .paywall h1 { font-size: clamp(36px, 4.6vw, 56px); }
.welcome .auth-card { max-width: 480px; display: grid; gap: 16px; padding: 26px 26px 20px; margin-top: 30px; }
.auth-card label { display: grid; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .02em; }
.auth-card .field { font-size: 16px; padding: 13px 16px; font-weight: 500; }
.auth-card .fine { margin: 0; }
.field::placeholder { color: var(--ink-soft); }
form.set { margin: 0; }
/* Native inputs inside setting rows follow the sky instead of the system's grey boxes. */
.set input[type='time'], .set input[type='text'] { border: 1px solid var(--glass-line); background: var(--glass); color: var(--ink); border-radius: 12px; padding: 9px 13px; outline: none; }
.set input[type='time']:focus, .set input[type='text']:focus { border-color: var(--accent); }
.welcome .card.set { padding: 16px 22px; }

/* ---------- Onboarding ---------- */
.welcome { padding-top: 11vh; }
.welcome .steps { display: grid; gap: 14px; margin: 30px 0; }
.welcome .why { font-size: 15px; color: var(--ink-soft); max-width: 52ch; }

@media (max-width: 700px) {
  .app { padding-left: 16px; padding-right: 16px; }
  .choices { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; }
  .tabs button { padding: 7px 10px; font-size: 12px; }
  .nav { gap: 6px; }
  .pro-pill { padding: 8px 11px; font-size: 11px; }
  .ritual { padding-left: 16px; padding-right: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { --slow: .01s; }
  *, *::before, *::after { animation-duration: .01s !important; animation-delay: 0s !important; transition-duration: .01s !important; }
}
