/* thesimple.focus · v3 · the story of how the app works */
#bg { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
main { position: relative; z-index: 1; }
.hidden { display: none !important; }
.top { padding: 16px 24px; }
.top nav { gap: 10px; }
.top::before { content: ''; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: linear-gradient(to bottom, var(--bg) 0%, var(--bg) 52%, transparent 100%); }
.top.scrolled::before { opacity: .94; }
.theme .moon { display: none; }
:root[data-theme="dark"] .theme .sun { display: none; } :root[data-theme="dark"] .theme .moon { display: block; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .theme .sun { display: none; } :root:not([data-theme="light"]) .theme .moon { display: block; } }

/* arrivals */
.rise { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .9s var(--spring); }
.rise.in { opacity: 1; transform: none; }

/* ---------- the hero ---------- */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; justify-content: center; padding: 96px 40px 40px; }
.hero-in { position: relative; width: 100%; max-width: 1240px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); grid-template-rows: auto auto auto; gap: 0 72px; align-items: center; }
.hero-words { grid-column: 1; grid-row: 1 / 3; align-self: end; }
.hero-mark { width: 200px; height: 200px; margin: 0 0 22px -14px; }
.hero h1 { font-size: clamp(48px, 5.2vw, 76px); line-height: .98; letter-spacing: -.034em; margin-bottom: 26px; }
.lead { font-size: 19px; line-height: 1.5; color: var(--soft); max-width: 25em; }
.hero-words .qr { display: flex; margin-top: 36px; }
.hero-comb { grid-column: 2; grid-row: 1; width: 100%; max-width: 500px; justify-self: center; margin: 0; }
.comb { width: 100%; height: auto; overflow: visible; display: block; }
.comb .day { outline: none; transition: opacity .35s ease; }
.comb .day path { fill: var(--neutral); }
.comb .day.on path { fill: var(--c); }
.comb .day text { font-family: var(--sans); font-size: 11px; fill: var(--empty-num); pointer-events: none; }
.comb .day.on text { fill: rgba(255,255,255,.94); }
.comb.looking .day:not(.hot) { opacity: .42; }
.comb .day:focus-visible path { stroke: var(--ink); stroke-width: 5; }
.comb-cap { grid-column: 1 / -1; grid-row: 2; align-self: end; position: relative; text-align: center; font-size: 14px; line-height: 1; padding-top: 28px; }
.cap-month { color: var(--soft); } .cap-day { position: absolute; right: 0; bottom: 0; white-space: nowrap; } .cap-meta { color: var(--soft); } .cap-meta::before { content: '\00a0\00b7\00a0'; }
.more { grid-column: 1 / -1; grid-row: 3; justify-self: center; margin-top: 28px; color: var(--soft); animation: breathe 2.6s ease-in-out infinite; }
.more svg { width: 20px; height: 20px; }
@keyframes breathe { 0%, 100% { opacity: .35 } 50% { opacity: 1 } }

/* ---------- chapters ---------- */
.ch { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(96px, 11vw, 150px) 40px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 56px 96px; align-items: center; }
.ch.flip > .words { order: 2; }
.label { font-size: 14px; color: var(--soft); margin-bottom: 14px; letter-spacing: .01em; }
.ch h2, .streak h2 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.1; letter-spacing: -.025em; max-width: 15em; }
.words p:not(.label) { margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--soft); max-width: 30em; }
.words.center { grid-column: 1 / -1; text-align: center; justify-self: center; }
.words.center h2, .words.center p:not(.label) { margin-left: auto; margin-right: auto; }
.words.center.read { text-align: left; width: 100%; max-width: 640px; }
.words.center.read h2, .words.center.read p:not(.label) { margin-left: 0; margin-right: 0; max-width: none; }
.facts { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; max-width: 30em; }
.facts li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.5; color: var(--soft); }
.facts li::before { content: ""; position: absolute; left: 0; top: .32em; width: 13px; height: 13px; background: var(--azure); opacity: .85;
  clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }

/* an app card: the same glass the app uses */
.app { position: relative; width: 100%; max-width: 400px; justify-self: center; border-radius: 30px; padding: 26px 22px 22px; }
.big { font-size: 26px; line-height: 1.2; letter-spacing: -.02em; color: var(--ink); }
.soft { color: var(--soft); }
.pill.wide { width: 100%; }
.pill.glass { color: var(--ink); } .pill.glass svg { color: var(--accent-ink); }
button.pill { border: 0; }

/* why */
.ch.why { display: block; }
.why .words p:not(.label) { max-width: 34em; }

/* focus: the demo */
.try { font-size: 13px; color: var(--soft); margin-bottom: 14px; }
.field { display: block; }
.field span { display: block; font-size: 14px; color: var(--soft); }
.field input { width: 100%; border: 0; border-bottom: 1.5px solid var(--underline, rgba(28,28,27,.5)); background: transparent; padding: 4px 0 6px; font-size: 24px; letter-spacing: -.01em; color: var(--ink); outline: none; border-radius: 0; }
.field input:focus { border-bottom-color: var(--azure); }
.demo.running .field input { border-bottom-color: transparent; }
.dial { position: relative; width: min(100%, 280px); aspect-ratio: 1; margin: 22px auto 18px; }
.dial canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.dial-start { position: absolute; inset: 0; border: 0; background: transparent; padding: 0; cursor: pointer; color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; -webkit-tap-highlight-color: transparent; transition: transform .42s var(--spring); }
.dial-start:active { transform: scale(.965); }
.dial-start svg { width: 40px; height: 40px; stroke-width: 1.1; }
.dial-start[disabled] { cursor: default; opacity: .4; }
.dial-time, .dial-done { position: absolute; inset: 0; display: none; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.demo.running .dial-time, .demo.paused .dial-time { display: flex; }
.demo.running .dial-start, .demo.paused .dial-start, .demo.done .dial-start { display: none; }
.digits { font-size: 54px; letter-spacing: -2px; line-height: 1; font-variant-numeric: tabular-nums; color: var(--ink); }
.demo.paused .digits { color: var(--soft); }
.of { font-size: 13px; color: var(--soft); margin-top: 4px; }
.demo.done .dial-done { display: flex; color: #fff; } .dial-done svg { width: 64px; height: 64px; stroke-width: 1.1; }
.row-ctl { display: flex; gap: 8px; justify-content: space-between; }
.dur { flex: 1 1 0; max-width: 76px; height: 52px; border: 0; border-radius: 26px; font-size: 17px; color: var(--ink); background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-rim), var(--glass-shadow); cursor: pointer; transition: transform .42s var(--spring); }
.dur small { font-size: 12px; opacity: .8; margin-left: 2px; }
.dur[aria-pressed="true"] { background: rgba(51,155,235,.88); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.dur:active, .chip:active, .mrow:active { transform: scale(.965); }
.row-ctl .pill { flex: 1 1 0; height: 52px; }
.demo-msg { min-height: 40px; margin: 10px 2px 0; font-size: 14px; color: var(--soft); text-align: center; }
.demo-msg b { font-weight: 400; color: var(--ink); }
.thoughts { display: block; margin-top: 8px; border-radius: 22px; padding: 14px 18px; }
.thoughts span { display: block; font-size: 13px; color: var(--soft); }
.thoughts textarea { font: inherit; width: 100%; border: 0; background: transparent; resize: none; font-size: 16px; line-height: 1.4; color: var(--ink85); outline: none; padding: 4px 0 0; }
.thoughts textarea::placeholder { color: var(--faint); }

/* the morning question */
.ask { min-height: 520px; display: flex; flex-direction: column; }
.ask-q { display: flex; flex-direction: column; gap: 22px; }
.mrows { display: flex; flex-direction: column; gap: 9px; }
.mrow { display: flex; align-items: center; gap: 12px; height: 58px; border: 0; border-radius: 29px; padding: 0 18px 0 9px; cursor: pointer; text-align: left; transition: transform .42s var(--spring); color: var(--ink); }
.mhex { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; }
.mhex .hx { position: absolute; inset: 0; width: 100%; height: 100%; }
.mhex .g { position: relative; width: 17px; height: 17px; color: #1C1C1B; }
.mrow[data-mood="tired"] .mhex .g, .mrow[data-mood="struggling"] .mhex .g { color: #fff; }
.mname { font-size: 17px; } .mdesc { margin-left: auto; font-size: 12px; color: var(--soft); white-space: nowrap; }
.unsaid-btn { border: 0; background: transparent; color: var(--soft); font-size: 15px; height: 40px; cursor: pointer; }
.ask-a { flex: 1; display: flex; flex-direction: column; gap: 10px; }
.ask-a[hidden], .ask-q[hidden] { display: none; }
.demo.partial .dial-done { display: none; }
.reveal-hex { position: relative; width: 190px; height: 190px; margin: 18px auto 30px; display: grid; place-items: center; animation: pop .7s var(--spring) both; }
.reveal-hex .hx { position: absolute; inset: 0; width: 100%; height: 100%; }
.rv-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; color: #fff; font-size: 16px; }
.rv-g { width: 30px; height: 30px; }
@keyframes pop { from { opacity: 0; transform: scale(.82); } to { opacity: 1; transform: none; } }
.ask-a .pill { margin-top: auto; }
.ask-a .rv-1 { font-size: 16px; } .ask-a .rv-3 { font-size: 15px; color: var(--ink85); }

/* your color: the mixer */
.mix-out { display: flex; flex-direction: column; align-items: center; }
.mix-parts { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--soft); flex-wrap: wrap; justify-content: center; }
.part { display: inline-flex; align-items: center; gap: 6px; }
.part i { width: 14px; height: 14px; display: inline-block; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); background: var(--neutral); }
.part i.minring { background: #A8D77A; }
.op { opacity: .5; }
.mix-hex { position: relative; width: 210px; height: 210px; margin: 18px 0 10px; display: grid; place-items: center; }
.mix-hex .hx { position: absolute; inset: 0; width: 100%; height: 100%; transition: filter .3s; }
.mix-hex .hx path { transition: fill .55s ease; }
.mix-num { position: relative; font-size: 22px; color: rgba(255,255,255,.94); transition: color .3s; }
.mix-num.empty { color: var(--empty-num); }
.mix-says { min-height: 40px; font-size: 14px; line-height: 1.4; color: var(--soft); text-align: center; max-width: 26em; }
.mix-in { margin-top: 18px; display: flex; flex-direction: column; gap: 16px; }
.slider { display: block; position: relative; }
.sl-top { display: flex; justify-content: space-between; font-size: 13px; color: var(--soft); margin-bottom: 8px; } .sl-top b { font-weight: 400; color: var(--ink); }
.slider .track { position: absolute; left: 0; right: 0; bottom: 9px; height: 10px; border-radius: 5px; pointer-events: none; }
.slider input { position: relative; z-index: 1; width: 100%; height: 28px; margin: 0; background: transparent; -webkit-appearance: none; appearance: none; cursor: pointer; }
.slider input::-webkit-slider-runnable-track { height: 28px; background: transparent; }
.slider input::-moz-range-track { height: 28px; background: transparent; }
.slider input::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px rgba(28,28,27,.12), 0 4px 12px rgba(28,28,27,.18); }
.slider input::-moz-range-thumb { width: 28px; height: 28px; border-radius: 14px; border: 0; background: #fff; box-shadow: 0 0 0 1px rgba(28,28,27,.12), 0 4px 12px rgba(28,28,27,.18); }
.slider input:focus-visible { outline: 2px solid var(--ink); outline-offset: 4px; border-radius: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 7px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 13px 0 11px; border: 0; border-radius: 18px; font-size: 14px; color: var(--ink); cursor: pointer; background: var(--glass); box-shadow: inset 0 0 0 1px var(--glass-rim), var(--glass-shadow); transition: transform .42s var(--spring); }
.chip i { width: 10px; height: 10px; border-radius: 5px; display: inline-block; } .chip i.unsaid { background: transparent; box-shadow: inset 0 0 0 1.5px #B7B5AF; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); box-shadow: none; }
.chips.mins .chip { padding: 0 14px; }

/* your log */
.ch.logbook { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); }
.words .hint { font-size: 15px !important; color: var(--faint) !important; }
.lbook { --partial: #B7B5AF; --journal: #7A776F; --quote: #457CA7; --off: #CFCDC7; height: 640px; max-width: 400px; padding: 20px 16px 14px; display: flex; flex-direction: column; overflow: hidden; }
.lb-view { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.lb-view[hidden] { display: none; }
.lbook .try { text-align: center; margin-bottom: 12px; }
.log-sw { flex: none; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 2px; border-radius: 22px; font-size: 16px; }
.log-sw b { font-weight: 400; }
.lb-arrow { width: 40px; height: 40px; border: 0; background: none; padding: 0; display: grid; place-items: center; cursor: pointer; color: var(--ink); border-radius: 20px; -webkit-tap-highlight-color: transparent; }
.lb-arrow svg { width: 18px; height: 18px; }
.lb-arrow:disabled { color: var(--off); cursor: default; }
.lb-fade { flex: 1; min-height: 0; display: flex; flex-direction: column; transition: opacity .2s ease; }
.lb-fade.out { opacity: 0; }
.log-bar { flex: none; display: flex; gap: 2px; height: 10px; border-radius: 5px; overflow: hidden; margin: 16px 6px 0; }
.log-bar i { display: block; height: 100%; }
.log-legend { flex: none; font-size: 12px; color: var(--soft); margin: 8px 6px 4px; min-height: 18px; }
.lb-rows { flex: 1; min-height: 0; overflow-y: auto; margin: 0 -6px; padding: 0 6px 18px; scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 30px), transparent); }
.lb-rows::-webkit-scrollbar { display: none; }
.lrow { width: 100%; display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 6px; border: 0; border-radius: 14px; background: none; text-align: left; cursor: pointer; color: var(--ink); -webkit-tap-highlight-color: transparent; position: relative; }
.lrow + .lrow::before { content: ''; position: absolute; left: 6px; right: 6px; top: 0; height: 1px; background: var(--hair); }
.lrow .hx { width: 32px; height: 32px; flex: none; }
.lr-t { min-width: 0; display: flex; flex-direction: column; }
.lrow .d { font-size: 15px; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow .s { display: flex; align-items: center; gap: 5px; font-size: 13px; line-height: 1.3; color: var(--soft); }
.lrow .s .g { width: 12px; height: 12px; }
.lrow .lchev { margin-left: auto; width: 14px; height: 14px; flex: none; color: var(--empty-num); }
.lb-top { flex: none; display: flex; align-items: center; height: 44px; }
.lb-top .lb-back { width: 40px; height: 40px; flex: none; }
.lb-top .lb-back svg { width: 18px; height: 18px; }
.lb-top b { flex: 1; text-align: center; font-weight: 400; font-size: 16px; padding-right: 40px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; padding-bottom: 12px; }
.lb-scroll::-webkit-scrollbar { display: none; }
.lb-sum { display: flex; align-items: center; gap: 16px; padding: 22px 4px 18px; animation: pop .6s var(--spring) both; }
.lb-hex { position: relative; width: 84px; height: 84px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.lb-hex .hx { position: absolute; inset: 0; width: 100%; height: 100%; }
.lb-hex .n { position: relative; font-size: 26px; line-height: 1; } .lb-hex .u { position: relative; font-size: 11px; margin-top: 3px; }
.lb-sumt { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.lb-sumt .t { font-size: 18px; line-height: 1.25; }
.mchip { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: 16px; font-size: 14px; background: var(--glass); box-shadow: inset 0 0 0 1px var(--hair); }
.mchip .g { width: 12px; height: 12px; }
.lb-label { font-size: 13px; color: var(--soft); margin: 6px 6px 2px; }
.ses { width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 14px 6px; border: 0; background: none; text-align: left; color: var(--ink); cursor: pointer; position: relative; border-radius: 14px; -webkit-tap-highlight-color: transparent; }
.ses.plain { cursor: default; }
.ses + .ses::before { content: ''; position: absolute; left: 6px; right: 6px; top: 0; height: 1px; background: var(--hair); }
.ses-top { display: flex; align-items: center; gap: 10px; width: 100%; }
.ses .sx { width: 20px; height: 20px; flex: none; margin-right: 2px; }
.ses-t { font-size: 15px; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ses .q { width: 12px; height: 12px; flex: none; color: var(--quote); }
.ses-m { margin-left: auto; padding-left: 8px; font-size: 13px; color: var(--soft); white-space: nowrap; }
.ses-note { display: none; padding-left: 32px; font-size: 15px; line-height: 1.45; color: var(--journal); }
.ses.open .ses-note { display: block; animation: rise-in .35s ease both; }
@keyframes rise-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
:root[data-theme="dark"] .lbook { --partial: #5F5D58; --journal: #A6A39B; --quote: #8FC8F4; --off: #4A4844; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .lbook { --partial: #5F5D58; --journal: #A6A39B; --quote: #8FC8F4; --off: #4A4844; } }

/* renders: the pinned sequence */
.streak-intro { display: none; }
.ch.streak { display: block; max-width: none; padding: 0; height: 300vh; height: 300svh; }
.streak .sticky { position: sticky; top: 0; height: 100vh; height: 100svh; box-sizing: border-box; max-width: 1240px; margin: 0 auto; padding: 80px 40px 32px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 96px; align-items: center; overflow: hidden; }
.streak .frame { justify-self: center; display: flex; justify-content: center; margin: 0; }
.streak-words p:not(.label) { margin-top: 20px; font-size: 18px; line-height: 1.55; color: var(--soft); max-width: 30em; }
.phone { --s: .82; --screen: #FCFCFB; --sink: 28, 28, 27; position: relative; flex: none; padding: calc(12px * var(--s)); border-radius: calc(62px * var(--s)); background: #141413; box-shadow: inset 0 0 0 1.5px #3A3936, 0 40px 80px -20px rgba(28, 28, 27, .35), 0 18px 36px -18px rgba(28, 28, 27, .3); }
.phone-screen { position: relative; width: calc(390px * var(--s)); height: calc(844px * var(--s)); border-radius: calc(50px * var(--s)); overflow: hidden; background: var(--screen); }
.phone-screen::after { content: ""; position: absolute; z-index: 4; top: calc(11px * var(--s)); left: 50%; width: calc(122px * var(--s)); height: calc(36px * var(--s)); transform: translateX(-50%); border-radius: 999px; background: #000; }
.screen { position: absolute; top: 0; left: 0; width: 390px; height: 844px; transform: scale(var(--s)); transform-origin: 0 0; color: rgb(var(--sink)); font-family: var(--sans); }
.render-cv { position: absolute; inset: 0; width: 390px; height: 844px; }
.sb { position: absolute; z-index: 3; top: 0; left: 0; right: 0; height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 4px 28px 0 44px; }
.sb-time { font: 600 17px/1 var(--sans); letter-spacing: -.01em; } .sb-icons { width: 80px; height: 14px; }
.pt-top { position: absolute; left: 16px; right: 16px; top: 54px; display: flex; align-items: center; justify-content: space-between; transition: opacity .4s; }
.pt-top .round { width: 44px; height: 44px; } .pt-top .round svg { width: 18px; height: 18px; }
.month-pill { height: 36px; padding: 0 14px; border-radius: 18px; display: flex; align-items: center; font-size: 14px; color: rgba(var(--sink), .85); }
.pt-card { position: absolute; left: 12px; right: 12px; bottom: 30px; border-radius: 30px; padding: 18px 16px 18px 22px; display: grid; grid-template-columns: 1fr auto; row-gap: 3px; column-gap: 12px; align-items: center; transition: opacity .4s; }
.pt-title { font-size: 22px; letter-spacing: -.02em; color: rgba(var(--sink), .9); line-height: 1.15; }
.pt-earned { font-size: 14px; color: rgba(var(--sink), .75); grid-column: 1; }
.pt-dl { grid-column: 2; grid-row: 1 / 4; width: 56px; height: 56px; border-radius: 28px; display: flex; align-items: center; justify-content: center; }
.pt-dl svg { width: 22px; height: 22px; }
.phone { --glass: rgba(255,255,255,.62); --glass-rim: rgba(255,255,255,.75); --glass-shadow: 0 8px 26px rgba(28,28,27,.08); }
.phone .round, .phone .pt-dl { color: #1C1C1B; }
.screen.timerphase .pt-top, .screen.timerphase .pt-card { opacity: 0; }
.track { margin: 36px 0 0; max-width: 470px; }
.track-svg { width: 100%; height: auto; overflow: visible; display: block; }
.track-svg text { font-family: var(--sans); font-size: 10px; fill: var(--soft); transition: opacity .4s; }
:root[data-theme="dark"] .phone { box-shadow: inset 0 0 0 1.5px #4A4844, 0 40px 80px -20px rgba(0, 0, 0, .6); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone { box-shadow: inset 0 0 0 1.5px #4A4844, 0 40px 80px -20px rgba(0, 0, 0, .6); } }

/* private: the settings, as the app shows them */
.settings { width: 100%; max-width: 400px; justify-self: center; display: flex; flex-direction: column; gap: 12px; }
.settings .try { text-align: center; margin-bottom: 2px; }
.sblock { border-radius: 22px; padding: 0 18px; }
.srow { width: 100%; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 0; background: none; padding: 0; text-align: left; font-size: 16px; color: var(--ink); position: relative; }
button.srow { cursor: pointer; -webkit-tap-highlight-color: transparent; }
.srow + .srow::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--hair); }
.srow svg { width: 20px; height: 20px; flex: none; color: var(--soft); transition: transform .42s var(--spring); }
button.srow:active svg { transform: scale(.9); }
.tog { flex: none; width: 51px; height: 31px; border: 0; padding: 0; border-radius: 16px; background: var(--ring); position: relative; cursor: pointer; transition: background .25s ease; }
.tog i { position: absolute; top: 2px; left: 2px; width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.18); transition: transform .3s var(--spring); }
.tog[aria-checked="true"] { background: var(--azure); }
.tog[aria-checked="true"] i { transform: translateX(20px); }
.s-msg { min-height: 20px; font-size: 14px; color: var(--soft); text-align: center; opacity: 0; transition: opacity .3s ease; }
.s-msg.on { opacity: 1; }

/* every month has its own pattern */
.ch.forms { display: block; }
.gallery { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 26px 16px; margin-top: 52px; }
.form { margin: 0; }
.form figcaption { font-size: 13px; color: var(--soft); text-align: center; margin-bottom: 10px; white-space: nowrap; }
.form figcaption span { color: var(--ink); }
:root[data-theme="dark"] .form img { filter: brightness(.86); box-shadow: 0 0 0 1px var(--hair); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .form img { filter: brightness(.86); box-shadow: 0 0 0 1px var(--hair); } }
.form img { width: 100%; height: auto; display: block; border-radius: 14px; box-shadow: 0 0 0 1px var(--hair), 0 14px 30px -18px rgba(28,28,27,.25); background: #FCFCFB; }

/* gentle by design */
.ch.kind { display: block; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 48px auto 0; max-width: 880px; }
.card { border-radius: 24px; padding: 24px 24px 26px; }
.card h3 { font-size: 19px; line-height: 1.25; letter-spacing: -.01em; margin-bottom: 8px; }
.card p { font-size: 15px; line-height: 1.5; color: var(--soft); }

/* close */
.ch.close { display: block; text-align: center; padding-bottom: clamp(96px, 10vw, 140px); }
.thesis { font-size: clamp(28px, 3.6vw, 50px); line-height: 1.12; letter-spacing: -.03em; color: var(--ink); max-width: 18em; margin: 0 auto; text-align: left; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 20px 32px; margin-top: 44px; }
.pill.outline { background: var(--bg); color: var(--azure); box-shadow: inset 0 0 0 1.5px var(--azure); } .pill.outline svg { color: var(--azure); }

.foot { display: block; padding: 0; position: relative; z-index: 1; border-top: 0; }
.foot-in { max-width: 1240px; margin: 0 auto; padding: 44px 40px 52px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.foot-in p { margin: 0; } .foot-in ul { justify-content: center; } .foot-in .fine { margin-top: 10px; }

@media (prefers-reduced-motion: reduce) {
  .rise { opacity: 1; transform: none; transition: none; }
  .more, .reveal-hex, .lb-sum, .ses.open .ses-note { animation: none; }
  .lb-fade, .tog, .tog i { transition: none; }
}

/* ---------- tablets ---------- */
@media (max-width: 1100px) and (min-width: 900px) {
  .ch { gap: 48px 56px; padding-left: 32px; padding-right: 32px; }
  .gallery { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 899px) and (min-width: 600px) {
  .app, .settings { max-width: 440px !important; justify-self: center; width: 100%; }
}

/* ---------- phones ---------- */
@media (max-width: 899px) {
  .top { padding: 12px 16px; transition: transform .35s ease, opacity .35s ease; } .top.away { transform: translateY(-100%); opacity: 0; } .top.away * { pointer-events: none !important; } .top .logo { font-size: 20px !important; } .top nav .pill { padding: 0 14px; font-size: 15px; }
  .hide-sm, .top nav a.hide-sm { display: none; }
  .qr svg { display: none; }
  .hero { padding: 88px 20px 32px; align-items: flex-start; }
  .hero-in { grid-template-columns: 1fr; grid-template-rows: none; gap: 28px; }
  .hero-mark { order: -1; width: 132px; height: 132px; margin: 0 0 -8px -8px; }
  .hero h1 { font-size: clamp(46px, 13vw, 64px); margin-bottom: 18px; }
  .lead { font-size: 18px; }
  .hero-words { display: contents; } .hero-words h1 { order: 0; } .hero-words .lead { order: 1; margin-top: -10px; } .hero-words .qr { order: 3; margin-top: 0; }
  .hero-comb { order: 2; max-width: none; grid-column: auto; grid-row: auto; }
  .comb-cap { order: 2; grid-row: auto; text-align: left; line-height: 1.5; padding-top: 0; } .cap-day { position: static; display: block; } .cap-hint { display: none; }
  .more { order: 4; grid-row: auto; margin-top: 8px; }

  .ch { grid-template-columns: 1fr; gap: 36px; padding: 80px 20px; }
  .ch.flip > .words { order: 0; }
  .ch h2, .streak h2 { font-size: clamp(28px, 8vw, 36px); }
  .words p:not(.label) { font-size: 17px; margin-top: 16px; }
  .facts li { font-size: 15px; }
  .app { max-width: none; padding: 22px 18px 18px; border-radius: 28px; }
  .big { font-size: 24px; }
  .mrow { height: 56px; } .mdesc { font-size: 11.5px; }
  .ask { min-height: 500px; }
  .ch.logbook { grid-template-columns: 1fr; } .lbook { height: 600px; } .settings { max-width: none; }

  .streak .sticky { grid-template-columns: 1fr; gap: 16px; padding: 72px 20px 12px; align-items: start; align-content: start; }
  .streak .frame { order: 2; }
  .streak-intro { display: block; max-width: none; padding: 80px 20px 0; }
  .streak-intro p.h2 { font-size: clamp(28px, 8vw, 36px); line-height: 1.1; letter-spacing: -.025em; color: var(--ink); max-width: 15em; margin: 0; }
  .streak-intro p:not(.label):not(.h2) { margin-top: 16px; font-size: 17px; line-height: 1.55; color: var(--soft); }
  .streak-words .label, .streak-words h2, .streak-words .sw-p { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .streak .sticky { padding-top: 64px; }
  .track { margin-top: 16px; }

  .gallery { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 36px -20px 0; padding: 0 20px 10px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .gallery::-webkit-scrollbar { display: none; }
  .form { flex: 0 0 42%; scroll-snap-align: start; }
  .cards { grid-template-columns: 1fr; gap: 12px; margin-top: 36px; }
  .card { padding: 20px 20px 22px; }
  .foot-in { padding: 40px 20px 48px; }
}
@media (max-width: 380px) {
  .mdesc { display: none; }
  .dur { font-size: 15px; }
}
@media (max-width: 360px) { .top { padding: 12px 12px; } .top .logo { font-size: 17px !important; } .top nav { gap: 6px; } .top nav .pill { padding: 0 11px; font-size: 14px; } }

/* hover only where there is a pointer that hovers (a tap never leaves a row lit) */
@media (hover: hover) {
  .lb-arrow:not(:disabled):hover, .lrow:hover, .ses:not(.plain):hover { background: var(--hair); }
}
.nb { white-space: nowrap; }
.ch h2, .streak h2, .streak-intro .h2 { text-wrap: balance; }
@media (max-width: 899px) { .srow { font-size: 15px; } }
.srow span { text-wrap: balance; }
