:root {
  --cream: #fbf6ee; --card: #fffdf9; --line: #ece4d8; --ink: #20263a; --ink-2: #5d6170; --ink-3: #8b8e99;
  --navy: #26304d; --blush: #f2dcdc; --blush-2: #e9c8c8; --sage: #e3ebe0; --sage-2: #c9d8c4; --butter: #f7eecb; --butter-2: #ecdea0;
  --sand: #efe7dc;
  --serif: 'Newsreader', Georgia, serif; --sans: Figtree, system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1); --spring: cubic-bezier(0.3, 1.3, 0.45, 1);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--sans); color: var(--ink); background: radial-gradient(900px 600px at 80% 0%, #f6e3e3, transparent 60%), radial-gradient(700px 500px at 0% 100%, #e6eee3, transparent 60%), #f6f0e7; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }

.stage { min-height: 100%; display: grid; grid-template-columns: minmax(260px, 360px) auto; gap: 56px; justify-content: center; align-items: center; padding: 28px 20px; }
.presenter .by { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 14px; }
.presenter h1 { font-family: var(--serif); font-weight: 400; font-size: 44px; line-height: 1; margin: 0; }
.presenter .sub { color: var(--ink-2); margin: 8px 0 22px; }
.note { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 18px; }
.note .t { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 10px; border-radius: 99px; background: var(--sage); color: #3f5a3a; }
.note .t.eco { background: var(--navy); color: #fff; }
.note h2 { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 10px 0 6px; }
.note p { margin: 0; color: var(--ink-2); line-height: 1.55; font-size: 15px; }
.jump { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.jump button { border: 1px solid var(--line); background: rgb(255 255 255 / .6); border-radius: 99px; padding: 6px 12px; font-size: 13px; }
.jump button[aria-current="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.fine { font-size: 12px; color: var(--ink-3); margin-top: 16px; line-height: 1.5; }

.phone { width: 390px; height: 844px; border-radius: 54px; padding: 11px; background: var(--navy); box-shadow: 0 40px 80px -24px rgb(38 48 77 / .45); }
.screen { position: relative; height: 100%; border-radius: 44px; overflow: hidden; background: var(--cream); display: flex; flex-direction: column; }
.appbar { flex: none; display: flex; justify-content: space-between; align-items: center; padding: 30px 20px 12px; border-bottom: 1px solid var(--line); background: var(--cream); }
.logo { font-family: var(--serif); font-size: 23px; letter-spacing: -.01em; }
.tag { font-size: 9.5px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-2); margin-top: 2px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--blush); font-weight: 600; }
.view { flex: 1; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 20px 18px 120px; }
.view::-webkit-scrollbar { display: none; }

@media (max-width: 860px) {
  .stage { display: block; padding: 0; }
  .presenter { display: none; }
  .phone { width: 100%; height: 100dvh; border-radius: 0; padding: 0; box-shadow: none; }
  .screen { border-radius: 0; }
  .appbar { padding-top: calc(env(safe-area-inset-top, 0px) + 14px); }
}

/* type + blocks */
.kick { font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); font-weight: 600; }
h2.big { font-family: var(--serif); font-weight: 400; font-size: 34px; line-height: 1.08; margin: 8px 0 18px; letter-spacing: -.01em; }
h3.sec { font-family: var(--serif); font-weight: 400; font-size: 22px; margin: 0; }
.sec-row { display: flex; justify-content: space-between; align-items: baseline; margin: 26px 2px 12px; }
.sec-row button { border: 0; background: none; font-size: 13px; text-decoration: underline; color: var(--ink); padding: 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; }
.card.blush { background: var(--blush); border-color: var(--blush-2); }
.card.sage { background: var(--sage); border-color: var(--sage-2); }
.card.butter { background: var(--butter); border-color: var(--butter-2); }
.card + .card { margin-top: 12px; }
.card h4 { font-family: var(--serif); font-weight: 400; font-size: 21px; margin: 6px 0 4px; line-height: 1.2; }
.card p { margin: 0; color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.btn { border: 0; border-radius: 99px; padding: 11px 18px; font-weight: 600; font-size: 14px; background: var(--navy); color: #fff; transition: transform 150ms var(--ease); }
.btn:active, .chip:active, .soft:active { transform: scale(.96); }
.btn.light { background: rgb(255 255 255 / .75); color: var(--ink); }
.soft { border: 0; border-radius: 99px; padding: 8px 14px; background: var(--sand); font-size: 13px; font-weight: 500; transition: transform 150ms var(--ease), background 200ms; }
.soft.on { background: var(--navy); color: #fff; }
.linkish { border: 0; background: none; padding: 0; text-decoration: underline; font-size: 14px; color: var(--ink); margin-top: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 14px -18px 14px; padding: 0 18px; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: none; border: 0; border-radius: 99px; padding: 8px 13px; background: var(--sand); font-size: 13px; font-weight: 500; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; }

.check { display: flex; align-items: center; gap: 12px; padding: 10px 2px; font-size: 15px; }
.check input { appearance: none; width: 20px; height: 20px; border: 1.5px solid var(--ink-3); border-radius: 6px; display: grid; place-items: center; margin: 0; flex: none; transition: background 200ms; }
.check input:checked { background: var(--navy); border-color: var(--navy); }
.check input:checked::after { content: ''; width: 10px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.check input:checked + span { color: var(--ink-3); text-decoration: line-through; }
.addrow { display: flex; gap: 8px; margin-top: 6px; }
.addrow input { flex: 1; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: #fff; }

.compose { width: 100%; text-align: left; border: 0; border-radius: 16px; background: var(--sand); padding: 14px 16px; font-size: 14px; color: var(--ink-2); display: flex; justify-content: space-between; }
.post { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 16px; margin-top: 12px; animation: in 400ms var(--ease); }
@keyframes in { from { opacity: 0; transform: translateY(10px); } }
.post .who { display: flex; gap: 10px; align-items: center; }
.post .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--butter); font-weight: 600; font-size: 14px; }
.post b { display: block; font-size: 14px; }
.post small { color: var(--ink-3); font-size: 12px; }
.post .body { font-size: 14px; line-height: 1.55; color: var(--ink-2); margin: 12px 0 0; }
.post .ev { margin-top: 12px; background: var(--sage); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--ink); line-height: 1.45; }
.post .acts { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.post .acts .lnk { border: 0; background: none; text-decoration: underline; font-size: 13px; padding: 4px; }
.cheer.on { background: var(--blush); }

/* planner */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; margin-top: 10px; }
.cal .dow { font-size: 11px; color: var(--ink-3); padding-bottom: 4px; }
.cal button { aspect-ratio: 1; border: 0; border-radius: 12px; background: transparent; font-size: 14px; position: relative; }
.cal button.has::after { content: ''; position: absolute; left: 50%; bottom: 6px; width: 5px; height: 5px; border-radius: 50%; background: #c9878a; transform: translateX(-50%); }
.cal button.today { background: var(--blush); font-weight: 700; }
.cal button.sel { background: var(--navy); color: #fff; }
.cal button.sel.has::after { background: #fff; }
.plan { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; }
.plan:first-child { border-top: 0; }
.plan .tm { font-size: 12px; color: var(--ink-3); width: 58px; flex: none; }
.plan .src { font-size: 11px; color: #3f5a3a; background: var(--sage); border-radius: 99px; padding: 2px 8px; margin-left: auto; white-space: nowrap; }
.bar { height: 8px; border-radius: 99px; background: rgb(255 255 255 / .7); overflow: hidden; margin: 10px 0 6px; }
.bar i { display: block; height: 100%; background: var(--navy); border-radius: inherit; transition: width 500ms var(--ease); }

/* explore */
.event { display: grid; grid-template-columns: 62px 1fr; gap: 14px; align-items: start; }
.date { border-radius: 14px; background: var(--blush); text-align: center; padding: 8px 0; }
.date span { display: block; font-size: 10px; letter-spacing: .12em; font-weight: 700; color: var(--ink-2); }
.date b { font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1; }
.eco { display: inline-flex; gap: 5px; align-items: center; font-size: 11px; color: var(--ink-3); margin-top: 6px; }
.eco::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #7fa37a; }
.perk { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.perk b { font-size: 15px; display: block; }
.perk small { color: var(--ink-2); }

/* space */
.breathe { width: 140px; height: 140px; margin: 14px auto 8px; border-radius: 50%; background: radial-gradient(circle, #fff 0 30%, var(--sage-2) 31% 100%); display: grid; place-items: center; font-family: var(--serif); font-size: 18px; color: #3f5a3a; }
.breathe.go { animation: breathe 8s var(--ease) infinite; }
@keyframes breathe { 50% { transform: scale(1.18); } }
textarea.journal { width: 100%; min-height: 110px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; line-height: 1.5; resize: none; margin-top: 10px; }
.entry { font-size: 14px; color: var(--ink-2); border-left: 2px solid var(--blush-2); padding: 4px 0 4px 12px; margin-top: 10px; line-height: 1.5; }
.entry small { display: block; color: var(--ink-3); font-size: 11px; }
.dots { display: flex; gap: 6px; margin-top: 10px; }
.dots i { width: 22px; height: 22px; border-radius: 50%; background: rgb(255 255 255 / .7); }
.dots i.on { background: var(--navy); }
.disclaim { text-align: center; font-size: 11.5px; color: var(--ink-3); margin: 26px 10px 0; line-height: 1.5; }

/* liquid-glass tab bar (web approximation) */
.tabs { position: absolute; left: 12px; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; grid-template-columns: repeat(5, 1fr); padding: 6px; border-radius: 99px; z-index: 20;
  background: rgb(255 253 249 / .62); -webkit-backdrop-filter: blur(22px) saturate(170%); backdrop-filter: blur(22px) saturate(170%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / .9), inset 0 0 0 1px rgb(255 255 255 / .55), 0 14px 34px -12px rgb(38 48 77 / .35); }
.tabs .pill { position: absolute; top: 6px; bottom: 6px; left: 6px; width: calc((100% - 12px) / 5); border-radius: 99px; background: var(--blush); box-shadow: inset 0 1px 0 rgb(255 255 255 / .7); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform 480ms var(--spring); }
.tabs button { position: relative; z-index: 1; border: 0; background: none; display: grid; justify-items: center; gap: 2px; padding: 7px 0 6px; font-size: 10.5px; font-weight: 600; color: var(--ink-2); transition: transform 150ms var(--ease); }
.tabs button:active { transform: scale(.94); }
.tabs button[aria-selected="true"] { color: var(--ink); }
.tabs svg { width: 21px; height: 21px; }

.toast { position: absolute; left: 50%; bottom: 96px; transform: translate(-50%, 14px); opacity: 0; z-index: 30; background: var(--navy); color: #fff; font-size: 13.5px; font-weight: 500; padding: 10px 16px; border-radius: 99px; white-space: nowrap; pointer-events: none; transition: opacity 200ms, transform 300ms var(--spring); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.push { position: absolute; left: 10px; right: 10px; top: 10px; z-index: 40; background: rgb(255 255 255 / .85); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); border-radius: 20px; padding: 12px 14px; box-shadow: 0 12px 30px -10px rgb(0 0 0 / .3); display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: 13px; animation: drop 500ms var(--spring); }
@keyframes drop { from { transform: translateY(-120%); } }
.push .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--blush); display: grid; place-items: center; font-family: var(--serif); }
.push b { display: block; }

.sheet-scrim { position: absolute; inset: 0; background: rgb(32 38 58 / .35); z-index: 25; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 26; background: var(--cream); border-radius: 26px 26px 0 0; padding: 18px 18px calc(24px + env(safe-area-inset-bottom, 0px)); animation: up 350ms var(--ease); max-height: 80%; overflow-y: auto; }
@keyframes up { from { transform: translateY(100%); } }
.sheet h3 { font-family: var(--serif); font-weight: 400; font-size: 24px; margin: 0 0 12px; }
.sheet textarea, .sheet input { width: 100%; border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: #fff; margin-top: 8px; }
.grab { width: 40px; height: 5px; border-radius: 99px; background: var(--line); margin: 0 auto 14px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
