@font-face{font-family:NOKOMoney;src:url('/assets/record-demo/fonts/JetBrainsMono-Regular.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:NOKOMoney;src:url('/assets/record-demo/fonts/JetBrainsMono-Medium.ttf') format('truetype');font-style:normal;font-weight:500 700;font-display:swap}
/* The app excerpt follows NOKO/DesignSystem/Colors.swift and the Home/Entry UI. */
.record-sheet .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
#try-record,#record-home{scroll-margin-top:104px}
.record-demo{width:var(--page);margin:0 auto 140px;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:clamp(32px,7vw,110px);padding:12px 60px 0}
.record-demo__copy .eyebrow{font-size:12px;color:#617f64;letter-spacing:.07em;margin:0 0 20px}
.record-demo h2{font-size:clamp(34px,4vw,52px);line-height:1.5;letter-spacing:-.04em;margin:0}
.record-demo__copy>p:not(.eyebrow){font-size:15px;line-height:2;color:var(--ink-soft);margin:24px 0 0}
.record-demo__copy>.record-demo__status{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;margin:0!important}
.record-home{width:100%;max-width:440px;justify-self:center;padding:22px 18px 16px;background:#f3f8f7;color:#263c3d;border:1px solid #dceceb;border-radius:32px;box-shadow:0 20px 65px #234c4710;min-width:0}
.record-home__date{font-size:20px;font-weight:600;margin:0 4px 20px}
.record-home__card,.record-home__records{background:#fcfefd;border:1px solid #ddf3f4;border-radius:22px;padding:18px;min-width:0}
.record-home__heading{display:flex;justify-content:space-between;align-items:center;gap:8px}
.record-home h3{font-size:15px;margin:0;line-height:1.6;letter-spacing:0}
#record-badge{font-size:10px;white-space:nowrap;padding:6px 9px;border-radius:9px;background:#ddf3f4}
.record-home__support{font-size:11px;color:#5b6f6f;line-height:1.6;margin:5px 0 8px}
.record-home__main{display:flex;align-items:center;justify-content:space-between;min-width:0;gap:0}
.record-home__money{position:relative;z-index:1;display:grid;gap:4px;min-width:0;flex:1}
.record-home__money>span{font-size:12px;color:#5b6f6f}
.record-home__money>strong{font-family:'NOKOMoney',monospace;font-size:clamp(32px,3.2vw,43px);line-height:1.2;letter-spacing:-.055em;font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.record-home__money>strong.is-long{font-size:24px}
.record-home__money>small{font-family:'NOKOMoney',monospace;color:#5b6f6f;font-size:12px}
.record-home__character{width:128px;height:112px;flex:0 0 128px;overflow:hidden;transition:transform .18s ease-out}
.record-home__character img{width:100%;height:100%;object-fit:contain;transform:scale(1.59)}
.record-home__character.is-reacting{transform:translateY(-4px) scale(1.03)}
.record-home__feedback{height:30px;text-align:right;margin:2px 0 6px}
#record-delta{display:inline-block;border:1px solid #d5968247;border-radius:8px;padding:5px 9px;font-family:'NOKOMoney',monospace;color:#9c5946;font-size:12px;background:#fcfefd}
#record-delta[hidden]{display:none}
.record-home__gauge{height:16px;overflow:hidden;border-radius:20px;background:#ddf3f4}
.record-home__gauge>span{display:block;height:100%;width:var(--remaining);border-radius:inherit;background:linear-gradient(90deg,#68c9d3,#79d3b5);transition:width .36s ease-in-out}
.record-home[data-state=warning] #record-badge,.record-home[data-state=warning] .record-home__gauge{background:#f6edce}
.record-home[data-state=warning] .record-home__gauge>span{background:#eab97a}
.record-home[data-state=negative] #record-badge{background:#f8e6df}.record-home[data-state=negative] #record-balance{color:#9c5946}
.record-home__records{margin-top:16px;padding:16px 18px}
.record-home__records>p{font-size:11px;color:#5b6f6f;margin:4px 0 0}
.record-home__records ul{list-style:none;padding:0;margin:10px 0 0;max-height:180px;overflow-y:auto;overscroll-behavior:contain}
.record-home__records li{display:flex;justify-content:space-between;align-items:center;gap:12px;min-height:50px;border-top:1px solid #e7f3f2;padding:8px 0;font-size:13px}
.record-home__records li>span{min-width:0;overflow-wrap:anywhere}.record-home__records small{display:block;color:#5b6f6f;font-size:10px;margin-top:3px}
.record-home__records strong{flex:none;font-family:'NOKOMoney',monospace;font-size:14px;font-weight:500}
.record-home__action{display:flex;justify-content:flex-end;align-items:center;gap:14px;margin-top:18px}
.record-home__action>span{font-size:11px;color:#5b6f6f}
#record-open{width:64px;height:64px;border-radius:50%;border:1.5px solid #ddf3f4;background:#68c9d3;color:#fff;font:inherit;font-size:36px;display:grid;place-items:center;cursor:pointer;box-shadow:0 4px 14px #263c3d24}

.record-demo button:focus-visible,.record-sheet button:focus-visible{outline:3px solid #2e8891;outline-offset:3px}
.record-sheet{position:fixed;inset:0;margin:auto;width:min(440px,calc(100% - 32px));height:min(780px,calc(var(--record-vh,100dvh) - 40px));max-width:none;max-height:none;padding:0;overflow:hidden;border:0;border-radius:32px;background:#f3f8f7;color:#263c3d;font-family:-apple-system,BlinkMacSystemFont,'Hiragino Sans','Yu Gothic',sans-serif;font-size:17px;letter-spacing:0;line-height:1.4;box-shadow:0 24px 100px #173b3b2b}
.record-sheet[open]{display:flex;flex-direction:column;animation:record-sheet-in .24s cubic-bezier(.2,.75,.25,1)}
.record-sheet::backdrop{background:#263c3d40}
.record-sheet__handle{width:34px;height:5px;flex:none;border-radius:5px;background:#263c3d40;margin:6px auto 3px}
.record-sheet__header{position:relative;display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:4px 20px;flex:none}
.record-sheet__header h2{position:absolute;left:84px;right:84px;text-align:center;font-size:17px;line-height:1.4;letter-spacing:0;margin:0;font-weight:600;color:#111}
.record-sheet__close{font:inherit;font-size:17px;font-weight:400;color:#263c3d;background:#fcfefd;border:0;border-radius:28px;min-height:44px;padding:9px 16px;cursor:pointer;box-shadow:0 8px 24px #263c3d09;flex:none}
.record-sheet__done{margin-left:auto;color:#2e7d84}
#record-form{display:flex;flex-direction:column;flex:1;min-height:0}
.record-sheet__fields{flex:1;padding:8px 20px 24px;min-height:0;overflow-y:auto;overscroll-behavior:contain}
.record-sheet__amount{display:flex;flex-direction:column;align-items:center;gap:0;padding:16px 0;margin-bottom:8px}
.record-sheet__amount>span:first-child{font-size:13px;line-height:18px;color:#5b6f6f}
.record-sheet__number{display:flex;align-items:baseline;justify-content:center;gap:8px;max-width:100%;font-family:NOKOMoney,monospace;font-weight:500}
.record-sheet__number>span{font-size:24px;line-height:1.4;color:#5b6f6f}
#record-amount{box-sizing:content-box;width:1ch;flex:none;min-width:1ch;padding:0;border:0;background:transparent;color:#263c3d;font-family:inherit;font-size:48px;font-weight:500;line-height:1.4;border-radius:0;text-align:left;outline:none;caret-color:#007aff}
#record-amount::placeholder{color:#263c3d40;opacity:1}
.record-sheet__details{padding:0 12px;border:1px solid #ddf3f4;border-radius:16px;background:#fcfefd}
#record-memo{display:block;width:100%;min-height:64px;padding:12px 0;background:transparent;border:0;color:#263c3d;font:inherit;font-size:17px;border-radius:0;outline:none;caret-color:#007aff}
#record-memo::placeholder{color:#263c3d40;font:inherit;opacity:1}
.record-sheet__row{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;padding:8px 0;margin:0;background:transparent;border:0;border-top:1px solid #ddf3f4;color:#263c3d;font:inherit;text-align:left;cursor:pointer}
.record-chevron{margin-left:auto;width:12px;height:16px;flex:none;fill:none;stroke:#5b6f6f;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.record-calendar-icon{width:24px;height:20px;flex:none;fill:none;stroke:#2e7d84;stroke-width:1.8}
.record-sheet__footer{padding:12px 20px max(12px,env(safe-area-inset-bottom));flex:none;background:#f3f8f7}
.record-sheet-compact #record-sheet .record-sheet__fields{padding-top:4px}
.record-sheet-compact #record-sheet .record-sheet__amount{padding:8px 0;margin-bottom:4px}
.record-sheet-compact #record-amount{line-height:1.25}
#record-save{display:block;width:100%;min-height:52px;padding:12px 16px;border:0;border-radius:16px;background:#68c9d3;color:#263c3d;font:inherit;font-size:17px;font-weight:600;cursor:pointer;transition:transform .18s,opacity .18s}
#record-save:active:not(:disabled){transform:scale(.985)}
#record-save:disabled{opacity:.45;cursor:default}
.record-picker{height:min(440px,calc(var(--record-vh,100dvh) - 24px))}
.record-picker:has(#record-category-clear:not([hidden])){height:min(500px,calc(var(--record-vh,100dvh) - 24px))}
.record-picker__body{min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:24px 20px 16px;flex:1}
.record-category-options{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.record-category-options button{display:flex;justify-content:space-between;align-items:center;gap:8px;min-height:64px;padding:10px 16px;border:1px solid #ddf3f4;border-radius:12px;background:#fcfefd;color:#263c3d;font:inherit;text-align:left;cursor:pointer}
.record-category-options button[aria-pressed=true]{background:#dceef0;border-color:#68c9d3;color:#24676d}
.record-category-options button[aria-pressed=true]::after{content:'✓';font-size:13px;flex:none}
#record-category-clear{display:block;margin:16px auto 0;min-height:44px;padding:8px 12px;color:#8a6846;border:0;background:transparent;font:inherit;cursor:pointer}
#record-category-clear[hidden]{display:none}
.record-picker__body>p:last-child:not(#record-month){font-size:13px;color:#5b6f6f;text-align:center;margin:24px 0 0}
.record-calendar{padding-top:8px}
#record-month{margin:8px 0 18px;font-size:17px;font-weight:600}
.record-calendar__week,.record-calendar__days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}
.record-calendar__week{font-size:12px;color:#5b6f6f;margin-bottom:8px}
.record-calendar__days button{width:100%;aspect-ratio:1;max-height:44px;border:0;border-radius:50%;font:inherit;font-size:19px;color:#263c3d;background:transparent;cursor:pointer}
.record-calendar__days button:disabled{color:#b3bfbd;cursor:default}
.record-calendar__days button[aria-current=date]{color:#2e7d84;font-weight:600}
.record-calendar__days button[aria-pressed=true]{color:#24676d;background:#dceef0;font-weight:600}
html.record-sheet-open,html.record-sheet-open body{overflow:hidden;overscroll-behavior:none}.record-sheet-open .mobile-install{display:none!important}
@keyframes record-sheet-in{from{opacity:0;transform:translateY(48px)}to{opacity:1;transform:none}}
@media(max-width:980px){.record-demo{padding:0;gap:36px}}
@media(max-width:760px){.record-demo{grid-template-columns:1fr;gap:28px;margin-bottom:90px}.record-demo__copy{text-align:center}.record-demo h2{font-size:34px}.record-demo__copy>p:not(.eyebrow){font-size:14px;margin-top:14px}.record-home{max-width:410px}.record-home__money>strong{font-size:39px}}
@media(max-width:480px){.record-sheet{inset:auto;top:calc(var(--record-vv-top,0px) + 12px);left:0;width:100%;height:calc(var(--record-vh,100dvh) - 12px);margin:0;border-radius:32px 32px 0 0}.record-picker,.record-picker:has(#record-category-clear:not([hidden])){top:auto;bottom:calc(100dvh - var(--record-vh,100dvh) - var(--record-vv-top,0px));height:min(440px,calc(var(--record-vh,100dvh) - 12px))}.record-picker:has(#record-category-clear:not([hidden])){height:min(500px,calc(var(--record-vh,100dvh) - 12px))}}
@media(max-width:350px){.record-home{padding:18px 12px 14px}.record-home__card,.record-home__records{padding:14px}.record-home__heading{align-items:start}.record-home h3{font-size:13px}#record-badge{font-size:9px;padding:5px 6px}.record-home__character{width:100px;flex-basis:100px;height:98px}.record-home__money>strong{font-size:31px}.record-home__money>strong.is-long{font-size:16px}.record-sheet__header{padding-inline:16px}.record-sheet__header h2{left:76px;right:76px;font-size:16px}.record-sheet__close{padding-inline:14px;font-size:16px}#record-amount{font-size:clamp(36px,12vw,48px)}#record-memo::placeholder{font-size:14px}.record-category-options button{font-size:15px;padding-inline:12px}}
@media(prefers-reduced-motion:reduce){.record-sheet[open]{animation:none}.record-home__character,.record-home__gauge>span,#record-save{transition:none}.record-home__character.is-reacting,#record-save:active:not(:disabled){transform:none}}
